wainwright-ab
A collaboration between EngineApp & Kun.io App Studio
If a wainwright page includes the variants
field in its metadata, the variant will be merged over
the page's metadata. The variant's code
field will
be used to create a new output file name. If that field
is not present, the variant count will be used. The new
file's canoniacal
metadata field will be set to the
original file name. Finally, wainwright templates are
applied.
Gulp task:
var ab = ; gulp;
Content file landing.json
:
Template landing.hogan
:
{{#canonical}} {{/canoniacal}} {{header}} {{description}}
This would generate two additional files, besides the normal landing.html
.
Output file landing.html
:
original greetings
Output file landing.coupon.html
:
different greetings
Output file landing.coupon2.html
:
original yo
Copyrights belong to their respective owners ©2014. All rights reserved.