Sha256: 88f40ca2b7b4f60d85e92cf55d800c2b057d911ee9a9efdb86f51f3e7a213690
Contents?: true
Size: 390 Bytes
Versions: 4
Compression:
Stored size: 390 Bytes
Contents
require "erb" require "prez/helpers" module Prez module Builder include Prez::Helpers private def build_html(filename) @_slide_contents = erb_eval filename erb_eval File.expand_path("../../../templates/build.html.tt", __FILE__) end def erb_eval(template) ERB.new(File.read(template), nil, "-", "@output_buffer").result(binding) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
prez-0.0.5 | lib/prez/builder.rb |
prez-0.0.4 | lib/prez/builder.rb |
prez-0.0.3 | lib/prez/builder.rb |
prez-0.0.2 | lib/prez/builder.rb |