Jade template and pagination support #23

Closed
wants to merge 6 commits into
from

Conversation

Projects
None yet
5 participants
@thegreatape

I wanted to write my blog's skin templates in Jade, so I've added support for using languages aside from haml. The template engine still defaults to haml- if one wants to use Jade instead, you pass in the engine as a config parameter:
require('wheat')(__dirname, {templateEngine: 'jade'})
These changes should make it bit easier if someone else wants to add ejs, handlebars, or whatever.

I also wanted to be able to paginate articles, so index now takes an additional page parameter. It's up to the author's template to build next, previous, etc links.

Everything here is backward-compatible. Or it should be at any rate- I was able to run the howtonode.org repo without any problems that I could see.

@jeromegn

This comment has been minimized.

Show comment Hide comment
@jeromegn

jeromegn May 1, 2011

+1 I pulled and built the package manually and it works well.

jeromegn commented May 1, 2011

+1 I pulled and built the package manually and it works well.

@itwars

This comment has been minimized.

Show comment Hide comment
@itwars

itwars Jan 20, 2012

I'm divin into wheat, it's full of features, expect the pagination ! I agree with you thegreatape / WE ALL NEED PAGINATE to make it work with haml too !

itwars commented Jan 20, 2012

I'm divin into wheat, it's full of features, expect the pagination ! I agree with you thegreatape / WE ALL NEED PAGINATE to make it work with haml too !

@RusAlex

This comment has been minimized.

Show comment Hide comment
@RusAlex

RusAlex Mar 28, 2012

will this pull request add to a wheat repo by author ?

RusAlex commented Mar 28, 2012

will this pull request add to a wheat repo by author ?

@damienklinnert

This comment has been minimized.

Show comment Hide comment
@damienklinnert

damienklinnert Jul 13, 2012

+1 plz merge

+1 plz merge

@thegreatape

This comment has been minimized.

Show comment Hide comment
@thegreatape

thegreatape Feb 25, 2016

(closing to clean up my own open PR list)

(closing to clean up my own open PR list)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment