Guard templates extension for jshaml