Sha256: 592b971a481b3d1f81ca52401e9f1b32e092f5da9801b7ca9544e982274649ed
Contents?: true
Size: 526 Bytes
Versions: 2
Compression:
Stored size: 526 Bytes
Contents
Ramaze.setup(:verbose => false) do gem 'lokar' end module Ramaze module View ## # Allows views to use Lokar as the template engine. See the following # website for more information: https://github.com/Zoxc/Lokar # module Lokar def self.call(action, string) compiled = View.compile(string){|s| ::Lokar.compile(s, action.view || __FILE__) } html = action.instance.instance_eval(&compiled).join return html, 'text/html' end end # Helper end # View end # Ramaze
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-2012.04.14 | lib/ramaze/view/lokar.rb |
ramaze-2012.03.07 | lib/ramaze/view/lokar.rb |