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

Version Path
smalruby-editor-0.1.5-x86-mingw32 app/views/editor/demo.html.erb
smalruby-editor-0.1.5 app/views/editor/demo.html.erb
smalruby-editor-0.1.4-x86-mingw32 app/views/editor/demo.html.erb
smalruby-editor-0.1.4 app/views/editor/demo.html.erb
smalruby-editor-0.1.3-x86-mingw32 app/views/editor/demo.html.erb
smalruby-editor-0.1.3 app/views/editor/demo.html.erb
smalruby-editor-0.1.2-x86-mingw32 app/views/editor/demo.html.erb
smalruby-editor-0.1.2 app/views/editor/demo.html.erb
smalruby-editor-0.1.1-x86-mingw32 app/views/editor/demo.html.erb
smalruby-editor-0.1.1 app/views/editor/demo.html.erb
smalruby-editor-0.1.0-x86-mingw32 app/views/editor/demo.html.erb
smalruby-editor-0.1.0 app/views/editor/demo.html.erb