Sha256: 093ceb6ea5d2e41c672d1ffc2ade292285432e9cbfb1b72ab23e45a0c62c7b4a
Contents?: true
Size: 469 Bytes
Versions: 7
Compression:
Stored size: 469 Bytes
Contents
# encoding: utf-8 $LOAD_PATH << File.expand_path("../../lib", __FILE__) require "ostruct" require "template-inheritance" TemplateInheritance::Template.paths << File.expand_path("..", __FILE__) post = OpenStruct.new(title: "My First Post!", content: "This is my first post!") # setup Tilt::HamlTemplate.options[:default_attributes] = {form: {method: "post"}} template = TemplateInheritance::Template.new("site/post.html.haml") puts "", template.render(post: post)
Version data entries
7 entries across 7 versions & 1 rubygems