Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jade supporting #7

Open
skotchio opened this issue Feb 26, 2013 · 4 comments
Open

Jade supporting #7

skotchio opened this issue Feb 26, 2013 · 4 comments

Comments

@skotchio
Copy link

I want to use grunt-htmlrefs in my project but I use jade template. How can I use that plugin for handling jade templates?

@johnnyhalife
Copy link
Contributor

Can you show me a jade template. Maybe it's an easy thing to do.

On Tue, Feb 26, 2013 at 1:59 PM, Lary notifications@github.com wrote:

I want to use grunt-htmlrefs in my project but I use jade template. How
can I use that plugin for handling jade templates?


Reply to this email directly or view it on GitHubhttps://github.com//issues/7
.

@skotchio
Copy link
Author

Yes sure: http://jade-lang.com/

@skotchio
Copy link
Author

I thiks you should to change this patterns:

var regexBuildStart = /<!--\s*build:(\w+)\s*(.+)\s*-->/;
var regexBuildEnd = /<!--\s*endbuild\s*-->/;
var regexComment = /<!--(.*)-->/;

to something like that:

var regexBuildStart = /\/\/-\s*build:(\w+)\s*(.+)\s*/;
var regexBuildEnd = /\/\/-\s*endbuild\s*/;
var regexComment = /\/\/-(.*)/;

@johnnyhalife
Copy link
Contributor

submit a pull request and I'll be happy to test and merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants