phng
phng

Reputation: 352

How to load json data with jade?

I read a way to implement json data in jade with the following code: h1 = t('pages.index.headline') But it doesn't work. All I get is this line as normal text or if I write "h1= t(..." instead of "h1 = t(..." my precompiler (Prepros) says "t is not a function".

Upvotes: 0

Views: 1555

Answers (1)

Jordi Flores
Jordi Flores

Reputation: 2150

This same thing got me strugglin some time ago, this posts help me a lot:

multilingual jade templates

Upvotes: 1

Related Questions