UNPKG

grunt-preprocess

Version:

Preprocess HTML and JavaScript directives based off environment configuration

21 lines (18 loc) 428 B
<!DOCTYPE html> <html> <head> <!-- @if NODE_ENV!='production' --> <title>dev title</title> <!-- @endif --> <!-- @if NODE_ENV!='development' --> <title>prod title</title> <!-- @endif --> </head> <body> <h1><!-- @echo globalOption --></h1> <h1><!-- @echo customOption --></h1> <h1><!-- @echo FAKEHOME --></h1> <h2><!-- @include include.txt --></h2> <h2><!-- @exec foo('bar') --></h2> </body> </html>