Sha256: 02f3b47e7760d9b8898987003d988b41bc1582ae032ddd5c4f180a34757c5e82
Contents?: true
Size: 516 Bytes
Versions: 1
Compression:
Stored size: 516 Bytes
Contents
# # Setup Slim require 'slim' ::Slim::Engine.set_default_options pretty: true module RevealCK class TemplateProcessor require 'tilt' def initialize(file) @template = Tilt.new file end def output(scope=nil, locals = {}) @template.render scope, locals end def self.open(path) file = if File.exists? path path else File.expand_path(File.join(Dir.pwd, path)) end TemplateProcessor.new file end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reveal-ck-0.1.5 | lib/reveal-ck/template_processor.rb |