comparison README.txt @ 91:672d2d3ee322

document a bit and add a test for an include example
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 10 Jan 2011 21:42:32 -0800
parents 324a70edb73c
children bfab7367eb56
comparison
equal deleted inserted replaced
90:26b9c3bba04e 91:672d2d3ee322
11 You don't know what that script does! 11 You don't know what that script does!
12 12
13 And this is the time of the iceberg. If it really is a one-off, who 13 And this is the time of the iceberg. If it really is a one-off, who
14 cares? But quickly one-offs become a deployment story, and not a very 14 cares? But quickly one-offs become a deployment story, and not a very
15 efficient one. 15 efficient one.
16
17 Variable Conventions
18 --------------------
19
20 MakeItSo! provides a few variables for you. You can include another
21 file or URL using {{include(URI)}}, where URI is the file path or the
22 URL (of course, internet is required to include remote resources). The
23 included resource is not included.
24
25 Files and URLS being interpolated also have the variable %(here)s,
26 which is the parent of their resource. Therefor, using sensible path
27 conventions, a neighboring file may be (e.g.) included like
28
29 {{include(here + 'foo.txt')}}