1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/documentation/v2/code.html
Geoffrey Booth 58f9428c58 Colors
2016-12-18 03:54:57 -08:00

17 lines
768 B
HTML

<aside class="code-example container-fluid" data-example="<%= file %>">
<div class="row">
<div class="col-md-6 coffee-example-column">
<textarea class="coffee-example" id="<%= file %>-coffee"><%= cs %></textarea>
</div>
<div class="col-md-6 javascript-output-column">
<textarea class="javascript-output" id="<%= file %>-js"><%= js %></textarea>
</div>
</div>
<% if (run) { %>
<div class="row">
<div class="col-xs-12 text-xs-right">
<button type="button" class="btn btn-primary" data-action="run-code-example" data-example="<%= file %>" data-run="<%= escape(run) %>"><% if (run === true) { %>▶<% } else { %><small></small>&ensp;<%= run.replace(/"/g, '&quot;') %><% } %></button>
</div>
</div>
<% } %>
</aside>