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

Remove dependency on jade-brunch #7

Open
rattigan opened this issue Mar 24, 2013 · 3 comments
Open

Remove dependency on jade-brunch #7

rattigan opened this issue Mar 24, 2013 · 3 comments

Comments

@rattigan
Copy link

Great plugin, but I'd really like to be able to use it with having the jade-plugin as a dependency. The problem is that the workaround you document (changing the output for templates) means I can't use any template plugin with my brunch project.

@rattigan
Copy link
Author

Here is a workaround (in config.coffee), but it's not pleasant:

# dirty hack to disable treatment of static jade resources as templates
jadeBrunch = require 'jade-brunch'
jadeBrunch::oldCompile = jadeBrunch::compile
jadeBrunch::compile = (data, path, callback) ->
    this.oldCompile(data, path, (error) -> callback(error))

@ilkosta
Copy link
Owner

ilkosta commented Mar 25, 2013

Have you tried the use of module.wrapper?

@rattigan
Copy link
Author

Thanks, that's a less ugly hack. I'd still suggest removing the dependency though, or adding this workaround to the doc at least.

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