templates/app.rb in clearwater-roda-0.1.0 vs templates/app.rb in clearwater-roda-0.2.0

- old
+ new

@@ -1,9 +1,8 @@ require 'roda' require 'roda/opal_assets' require 'opal' -require 'clearwater' class %{titleized_name} < Roda plugin :public assets = Roda::OpalAssets.new @@ -15,16 +14,28 @@ <<-HTML <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> - <title>%{titleized_name}</title> + <title>#{app_title}</title> </head> <body> <div id="app"></div> - #{assets.js 'app.js'} + #{additional_markup} + #{assets.js client_app} </body> </html> HTML + end + + def app_title + '%{titleized_name}' + end + + def client_app + 'app.js' + end + + def additional_markup end end