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

plugin order in the scope of the whole build process #66

Open
timaschew opened this issue Jun 23, 2014 · 1 comment
Open

plugin order in the scope of the whole build process #66

timaschew opened this issue Jun 23, 2014 · 1 comment

Comments

@timaschew
Copy link
Member

I want to know if it's possible with the API or otherwise how to achieve this feature:

I want to transform all jade files of the resolved tree, then I want to use the builder-jade plugin. Currently I only know how to do these steps during a build of just one file.

Actually I want to include jade templates from other components without using ../../.

I've already changed the builder-jade plugin to support a new (es6 import) syntax in jade:
include foo, bar from localComponent and it already works.

But it fails in some cases with transitive "es6" syntax includes, I'm sure it's because the jade files are build in a specific order and in each build step the include syntax is resolved then it compile to jade.
But I need to do the syntax resolving thing in a scope above.

@jonathanong
Copy link
Contributor

i'm not sure what this means. the builder only converts jade templates to functions. sounds like you want something many-to-1, which is too complicated and probably unnecessary.

if you just want to require() another template, just make the jade template the main file and you're good to go.

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