UNPKG

grunt-bake

Version:

Bake external includes into files to create static pages with no server-side compilation time

40 lines (32 loc) 1.29 kB
<!DOCTYPE html> <html> <head></head> <body> <!--(bake includes/include-one.html _if="title")--> <!--(bake includes/include-two.html _if="foo")--> <!--(bake includes/include-two.html _if="bar")--> <!--(bake-start _if="title")--> <!-- Here is a comment --> <div>Here is some content</div> <!--(bake-end)--> <!--(bake includes/include-two.html _if="!bar")--> <!--(bake-start _if="title == 'Apple Pie'")--> <h1>{{title}}</h1> <!--(bake-end)--> <!--(bake includes/include-two.html _if="title != 'Orange Pie'")--> <!--(bake includes/include-one.html _if="title == 'Orange Pie'")--> <!--(bake includes/include-one.html _if="'Apple Pie' == title && bar")--> <!--(bake includes/include-two.html _if="'Apple Pie' == title && !bar")--> Index 0: <!--(bake-start _if="0%2 === 0")-->check<!--(bake-end)--> Index 1: <!--(bake-start _if="1%2 === 0")-->check<!--(bake-end)--> Index 2: <!--(bake-start _if="2%2 === 0")-->check<!--(bake-end)--> Index 3: <!--(bake-start _if="3%2 === 0")-->check<!--(bake-end)--> Index 4: <!--(bake-start _if="4%2 === 0")-->check<!--(bake-end)--> <!--(bake-start _if="info.author")--> <h2>Author</h2> <!--(bake-end)--> <!--(bake-start _if="!info.author")--> <h2>No Author</h2> <!--(bake-end)--> </body> </html>