dustjs-helpers-markdown
v0.0.5
Published
Helpers Markdown for dustjs-linkedin package
Downloads
5
Maintainers
Readme
dustjs-helpers-markdown
Helpers Markdown for dustjs-linkedin package
#Install dependence
npm install dustjs-helpers-markdown --save
On ./config/config.json find this code
"view engines": {
"js": {
"module": "engine-munger",
"renderer": {
"method": "js",
"arguments": [
{ "cache": true },
{
"views": "config:express.views",
"view engine": "config:express.view engine",
"specialization": "config:specialization",
"i18n": "config:i18n"
}
]
}
}
},
Replace with:
"view engines": {
"js": {
"module": "engine-munger",
"renderer": {
"method": "js",
"arguments": [
{ "cache": true, "helpers": ["dustjs-helpers-markdown"] },
{
"views": "config:express.views",
"view engine": "config:express.view engine",
"specialization": "config:specialization",
"i18n": "config:i18n"
}
]
}
}
},
On the view
<div>
{@markdown}
![KrakenJS Logo](http://krakenjs.com/img/kraken.svg)
{/markdown}
</div>