Sha256: 4d5a2271119d375c34051b7d4feb6a0a7d2791b139ab5f35ca129052dfae9a0f
Contents?: true
Size: 487 Bytes
Versions: 6
Compression:
Stored size: 487 Bytes
Contents
<%= render template: 'editor/index' %> <script type="text/javascript"> $(function() { var data = '<%= escape_javascript(File.read(Rails.root.join("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
6 entries across 6 versions & 1 rubygems