Sha256: 26857b76bec8d4d99259ed113d097da792d2a07426d209564892705e43ed1d4c
Contents?: true
Size: 515 Bytes
Versions: 1
Compression:
Stored size: 515 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={}, 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.4 | lib/reveal-ck/template_processor.rb |