Open max-degterev opened 11 years ago
What fails to initialize properly? The locals (__env
, pretty
, helpers
) are not found in the view templates?
asset-rack passes asset object that has methods like asset.tag(filename) to create tags etc. if poet doesnt go last its undefined. Of course you can always re-assing it to locals later. I switched to grunt because it allows greater control over assets compilation so its no longer an issue to me. https://github.com/techpines/asset-rack
It looks like if you instantiate poet before modules that affect express "local" templating scope they fail to initialize properly
An example.
Works:
Fails: