Sha256: 6b48a4b60fa347d460a381a114fd437b9ba1ea471a3b8d3380e51ca278ba4f59
Contents?: true
Size: 498 Bytes
Versions: 12
Compression:
Stored size: 498 Bytes
Contents
<%= render template: 'editor/index' %> <script type="text/javascript"> $(function() { var data = '<%= escape_javascript(File.read(Rails.root.join("app/assets/demos/#{@filename}"))) %>'; data = $('<div>').html(data).text(); Smalruby.loadXml(data); <% if @filename != 'default.xml' %> var filename = $('<div>').html('<%= escape_javascript(@filename.sub(/\.xml$/, '.rb')) %>').text(); $('#filename').val(filename) <% end %> window.changed = false; }); </script>
Version data entries
12 entries across 12 versions & 1 rubygems