Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #config.ru
- require "./app.rb"
- require "opal"
- require "opal-sprockets"
- map '/assets' do
- env = Opal::Environment.new
- env.append_path 'opal'
- env.append_path 'views'
- run env
- end
- run Sinatra::Application
- #opal/test.rb
- require "opal"
- require "template"
- require 'login'
- puts Template['login'].render self
- #file structure:
- -views/
- login.opalerb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement