3 ms·
It's written in coffeescript and node.js instead of ruby. Jekyll is also made for blogging, for instance you have a _posts directory in Jekyll, in DocPad you ha
by balupton 15y ago
It's written in coffeescript and node.js instead of ruby. Jekyll is also made for blogging, for instance you have a _posts directory in Jekyll, in DocPad you have a src/documents page - this allows you to create urls like src/documents/about.html -> /about, and src/documents/projects/docpad.md -> /projects/docpad, and src/documents/posts/life.md -> /posts/life. Another great thing is that you can access the query engine inside the views, and the data associated to documents can be filled with whatever key values you want - so you can do advanced filtering/queries. The benefit is that you can extend the docpad server to do whatever you want (as it is just a node.js package) even add redirects and dynamic pages to the mix. Feel free to join me on #docpad on freenode.
- ojilles 15y agoIsn't this how Jekyll works as well? It's just that the _posts directory is special. But the base entity is a "Page" which exactly functions as you mention unless I'm mistaken. Also the YML frontmatter is fully accessible in the template engine (is that similar to the "data associated to documents" you mention?).