block and source views seperated

This commit is contained in:
Torsten Ruger
2015-07-31 19:42:34 +03:00
parent bdfafd17c8
commit 65d95de885
8 changed files with 63 additions and 35 deletions

View File

@ -0,0 +1,12 @@
module Main
class BlocksController < Volt::ModelController
def initialize *args
super(*args)
blocks = BlocksModel.new
page._blocks = blocks
@volt_app.interpreter.register_event(:instruction_changed, blocks)
end
end
end