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]: posthtml-hbs (?) #4

Open
stevenvachon opened this issue Nov 30, 2016 · 9 comments
Open

[plugin]: posthtml-hbs (?) #4

stevenvachon opened this issue Nov 30, 2016 · 9 comments
Assignees

Comments

@stevenvachon
Copy link

The link in the readme is dead.

@michael-ciniawsky
Copy link
Member

michael-ciniawsky commented Dec 3, 2016

@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

@stevenvachon
Copy link
Author

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.

@michael-ciniawsky
Copy link
Member

I have a need for running handlebars before posthtml

Alright I will make it

The only benefit, I think, would be a persistent API

Yep exactly, the goal is to have a convenience wrapper for .hbs files, helping folks to migrate/use PostHTML with Handlebars. If you have anything in mind please leave a comment here :).

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

@stevenvachon
Copy link
Author

@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.

@stevenvachon
Copy link
Author

@michael-ciniawsky thoughts?

@selfagency
Copy link

this ever happen?

@Scrum
Copy link
Member

Scrum commented Feb 26, 2018

@stevenvachon I'm afraid not (maybe you have ideas or want to do?

@Scrum Scrum changed the title posthtml-hbs (?) [plugin]: posthtml-hbs (?) Feb 28, 2018
@Scrum Scrum transferred this issue from posthtml/posthtml Feb 15, 2019
@maltsev
Copy link
Member

maltsev commented Feb 15, 2019

@Scrum why you transferred this issue to posthtml-plugins repository? The issue doesn't seem to be related to this project.

@Scrum
Copy link
Member

Scrum commented Feb 15, 2019

@maltsev Hi, this is not a problem, but ideas that can be implemented into a plugin

@Scrum Scrum transferred this issue from posthtml/posthtml-plugins Feb 15, 2019
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

5 participants