Skip to content

Commit

Permalink
borrow text on partials from mustache.5 manpage
Browse files Browse the repository at this point in the history
  • Loading branch information
jverzani committed Jan 13, 2016
1 parent e850ed3 commit a5df44a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,20 @@ end

(A string is used -- and not a `mt` macro above -- so that string interpolation can happen.)

### Partials

Partials are used to include partial templates into a template.

Partials begin with a greater than sign, like `{{> box.tpl }}`. In this example, the file `box.tpl` is opened and inserted into the template, then populated. A full path may be specified.

They also inherit the calling context.

In this way you may want to think of partials as includes, imports,
template expansion, nested templates, or subtemplates, even though
those aren't literally the case here.



## Alternatives

`Julia` provides some alternatives to this package which are better suited for many jobs:
Expand Down

0 comments on commit a5df44a

Please sign in to comment.