javascripttemplatespreprocessornpmdocpad

How to get tamplateData into javascript files in Docpad?


Is there a DocPad plugin that could pre-process the js files and use templateData variables and helpers to get configuration values available?

I've tried Hogan, I can get the variables but not call the helpers...


Solution

  • Using ECO plugin for Docpad I could achieve what I was looking for.

    I can get both values and call helpers from docpad templateData.