If you are fimilar with the markdown syntax and you may
want to use it instead of .html or .ejs views. Since each view engine
registers on a specific type, we'll add one for .md files.
To achieve this, easily grab the markdown-views plugin from the plugin repository.
Now you should have a plugins folder which looks like this:
plugins/
markdown-views/
...
Remove the generated views/Homepage.ejs.
Now we need to use the markdown views. Create a new file called
views/Homepage.md:
$ vim views/Homepage.md
with this contents:
## Welcome to DocsForIt!
Let's create DocsForIt! Sometimes you have a pretty neat piece of something
but have no info how to use it.
This small tool helps you to maintain the documentation and collaborate with
others.
### Under the hood
The source for DocsForIt! my be found [docsforit github page]
[docsforit-github] and is released for the public domain.
[docsforit-github]: http://github.com/DracoBlue/docsforit
This application was created by using the [spludo framework] [spludo-framework].
[spludo-framework]: http://spludo.com
(A powerful webframework for node.JS)
Running the app again with:
$ node run_server.js
Now we see already h2+h3 and the little text as clean html.