Sha256: ee3660db31e02e6732302ddb1a5a06784b8a6fc1c53afb0592b14c096735b341
Contents?: true
Size: 831 Bytes
Versions: 7
Compression:
Stored size: 831 Bytes
Contents
require 'tilt' module RevealCK module Builders # # Public: An IndexHtml knows how to build the index.html file (the # core slides) within a reveal.js presentation. # class IndexHtml include Retrieve attr_reader :template, :slides_html, :head_prefix, :config def initialize(args) @template = retrieve(:template, args) @slides_html = retrieve(:slides_html, args) @head_prefix = retrieve(:head_prefix, args) @config = retrieve(:config, args) end def render scope = RevealCK::Render::Scope.new(dir: Dir.pwd, config: config) tilt_template = Tilt.new(template) locals = { slides_html: slides_html, head_prefix: head_prefix } tilt_template.render(scope, locals) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems