Sha256: 67aab615be05161f3fd4fd093e3ff580d4eb7e55e351c2b3db7368d5407bae1f

Contents?: true

Size: 437 Bytes

Versions: 65

Compression:

Stored size: 437 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);

    var filename = $('<div>').html('<%= escape_javascript(@filename.sub(/\.rb\.xml$/, '.rb')) %>').text();
    $('#filename').val(filename)

    window.changed = false;
  });
</script>

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
smalruby-editor-0.4.1-x86-mingw32 app/views/editor/demo.html.erb
smalruby-editor-0.4.2-x86-mingw32 app/views/editor/demo.html.erb
smalruby-editor-0.4.2 app/views/editor/demo.html.erb
smalruby-editor-0.4.1 app/views/editor/demo.html.erb
smalruby-editor-0.4.0-x86-mingw32 app/views/editor/demo.html.erb
smalruby-editor-0.4.0 app/views/editor/demo.html.erb
smalruby-editor-0.3.5-x86-mingw32 app/views/editor/demo.html.erb
smalruby-editor-0.3.5 app/views/editor/demo.html.erb
smalruby-editor-0.3.4-x86-mingw32 app/views/editor/demo.html.erb
smalruby-editor-0.3.4 app/views/editor/demo.html.erb
smalruby-editor-0.3.3-x86-mingw32 app/views/editor/demo.html.erb
smalruby-editor-0.3.3 app/views/editor/demo.html.erb
smalruby-editor-0.3.2-x86-mingw32 app/views/editor/demo.html.erb
smalruby-editor-0.3.2 app/views/editor/demo.html.erb
smalruby-editor-0.3.1-x86-mingw32 app/views/editor/demo.html.erb
smalruby-editor-0.3.1 app/views/editor/demo.html.erb
smalruby-editor-0.3.0-x86-mingw32 app/views/editor/demo.html.erb
smalruby-editor-0.3.0 app/views/editor/demo.html.erb
smalruby-editor-0.2.7-x86-mingw32 app/views/editor/demo.html.erb
smalruby-editor-0.2.7 app/views/editor/demo.html.erb