-
Notifications
You must be signed in to change notification settings - Fork 0
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]: posthtml-hbs (?) #4
Comments
@stevenvachon Yep, when I updated the docs, I was sure to release that shortly after. Obviously wrong :) , I got distracted with other stuff. Would you use it, I can quickly make it, but if not tbh I discard it and remove the link form the README when I update examples for grunt, gulp, webpack |
I have a need for running handlebars before posthtml, which could benefit from a plugin. The only benefit, I think, would be a persistent API. |
Alright I will make it
Yep exactly, the goal is to have a convenience wrapper for const hbs = require('posthmtl-hbs')({ locals*: {} , partials: '', helpers: '' })
// *locals === data/context
posthtml(plugins).process(file.hbs, { parser: hbs })... Especially how the 'API' to register partials/helpers should look like |
@michael-ciniawsky or we could write a "posthtml-template" plugin that uses consolidate, as to avoid writing countless specific plugins. Such could replace your posthtml-jade. |
@michael-ciniawsky thoughts? |
this ever happen? |
@stevenvachon I'm afraid not (maybe you have ideas or want to do? |
@Scrum why you transferred this issue to posthtml-plugins repository? The issue doesn't seem to be related to this project. |
@maltsev Hi, this is not a problem, but ideas that can be implemented into a plugin |
The link in the readme is dead.
The text was updated successfully, but these errors were encountered: