|
14 | 14 |
|
15 | 15 | test.expect(14);
|
16 | 16 |
|
17 |
| - //setup current pattern from what we would have during execution |
18 |
| - var currentPattern = of.oPattern.create( |
| 17 | + // setup current pattern from what we would have during execution |
| 18 | + // docs on partial syntax are here: |
| 19 | + // http://patternlab.io/docs/pattern-including.html |
| 20 | + var currentPattern = of.oPattern.create( |
19 | 21 | '/home/fakeuser/pl/source/_patterns/01-molecules/00-testing/00-test-mol.mustache', // abspath
|
20 | 22 | '01-molecules\\00-testing', // subdir
|
21 | 23 | '00-test-mol.mustache', // filename,
|
|
30 | 32 | "{{> molecules-single-comment(description: 'A life isn\\'t like a garden. Perfect moments can be had, but not preserved, except in memory.') }}" +
|
31 | 33 | '{{> molecules-single-comment(description: "A life is like a \\"garden\\". Perfect moments can be had, but not preserved, except in memory.") }}' +
|
32 | 34 | "{{> molecules-single-comment:foo }}" +
|
33 |
| - // questionable: is a partial call with a file extension really |
34 |
| - // permitted? seems like no, based on |
35 |
| - // http://patternlab.io/docs/pattern-including.html |
| 35 | + // verbose partial syntax, introduced in v0.12.0, with file extension |
36 | 36 | "{{> 01-molecules/06-components/03-comment-header.mustache }}" +
|
37 | 37 | "{{> 01-molecules/06-components/02-single-comment.mustache(description: 'A life is like a garden. Perfect moments can be had, but not preserved, except in memory.') }}" +
|
38 | 38 | "{{> molecules-single-comment:foo }}" +
|
39 | 39 | "{{>atoms-error(message: 'That\\'s no moon...')}}" +
|
40 | 40 | '{{>atoms-error(message: \'That\\\'s no moon...\')}}' +
|
41 | 41 | "{{> 00-atoms/00-global/ }}" +
|
| 42 | + // verbose partial syntax, introduced in v0.12.0, no file extension |
42 | 43 | "{{> 00-atoms/00-global/06-test }}"
|
43 | 44 | }
|
44 | 45 | );
|
|
0 commit comments