coffeekup icon indicating copy to clipboard operation
coffeekup copied to clipboard

Easily extendable into a higher level "DSL"

Open pgherveou opened this issue 14 years ago • 1 comments

Hello thxs for this nice template engine

what's the recommended approach to extend the plugin DSL right now I 'am embedding helpers in the hardcode option , but I would like to reuse some of them globally I could wrap the compile or render methods but I am just wondering if this is the best way do to this

pgherveou avatar Oct 13 '11 09:10 pgherveou

Your web framework should be doing this. For example, expressjs allows you to specify 'view options', which will be passed to the view's compile as options argument.

ming-codes avatar Mar 27 '12 03:03 ming-codes