Sha256: f8abd7813791fc58f48266e1cb0940d233f8a0b44f18b6dd7b3bfe96317a8b08

Contents?: true

Size: 554 Bytes

Versions: 7

Compression:

Stored size: 554 Bytes

Contents

/ Paths

/ ./base.html: Find template base.html in the same directory as current template.
/ ../base.html: Find template base.html in parent directory of current template.

/ base.html: find template base.html in TemplateInheritance::Template.paths array.
/   The lookup works same as Ruby's require lookup, it's basically
/   TemplateInheritance::Template.paths.find { |dir| File.join(dir, template_name) }
- extends "./base.html"

- block(:scripts, ["post.js"])

- block(:post) do
  %h2= post.title
  %p= post.content

  = partial "./wtf", local: true

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
template-inheritance-0.3.1 example/site/post.html.haml
template-inheritance-0.3 example/site/post.html.haml
template-inheritance-0.2 example/site/post.html.haml
template-inheritance-0.1.3 example/site/post.html.haml
template-inheritance-0.1.2 example/site/post.html.haml
template-inheritance-0.1.1 example/site/post.html.haml
template-inheritance-0.1 example/site/post.html.haml