revieve volt scaffold

This commit is contained in:
Torsten Ruger
2015-07-29 17:13:04 +03:00
parent 79383d89b1
commit 485f3134dd
19 changed files with 830 additions and 83 deletions

11
config/dependencies.rb Normal file
View File

@ -0,0 +1,11 @@
# Specify which components you wish to include when
# the "home" component loads.
# bootstrap css framework
component 'bootstrap'
Opal.use_gem("salama-reader")
Opal.use_gem("salama-object-file")
Opal.append_path "app/main/lib"
css_file "hint.css"

View File

@ -0,0 +1,10 @@
# Place any code you want to run when the component is included on the client
# or server.
# To include code only on the client use:
# if RUBY_PLATFORM == 'opal'
#
# To include code only on the server, use:
# unless RUBY_PLATFORM == 'opal'
# ^^ this will not send compile in code in the conditional to the client.
# ^^ this include code required in the conditional.

View File

7
config/routes.rb Normal file
View File

@ -0,0 +1,7 @@
# See https://github.com/voltrb/volt#routes for more info on routes
client '/about', action: 'about'
# The main route, this should be last. It will match any params not
# previously matched.
client '/', {}