-
Notifications
You must be signed in to change notification settings - Fork 12
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
Support for a wrapper 'template'. #14
Comments
Not sure if I understand correctly but for this scenario, I think you can use And don't forget that you can use a function for the
In this case I wrap each |
Oh, interesting, I bet I could do something clever with having grunt read a file, for "header" then just having a function match a replacement inside that header, then just return that for the wrapper. |
Hope I'm not late to the party. I am also interested in being able to reference a file that will be used as the wrapper or rather "container" for some lump of code. My specific use case is a current project where I'm creating a library that would be shipped in a few different ways to allow usage in different js environments. In this case I would prefer to not include multiple headers/footers in my Gruntfile. Actually I think it would even help remove the need for the banner in the Gruntfile as well. I can understand that it's not really high on anyone's radar considering there is a way to do this with the header/footer options in Here is an example of the option I need (I think this is what @drbrts wants as well.
Some additional context. This is what a possible project setup could be:
And if we looked into a few of the wrapper files we see:
Not looking to jump the gun, but I gave this a bit of thought and here's a naive pseudo-implementation that I imagine could make this feature a reality:
|
I'm not entirely sure how it might be implemented, but I was wondering if it would be possible to make a kind of wrapper template file that would have a specific markup block for content in the middle that could get replaced.
The text was updated successfully, but these errors were encountered: