Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Handlebars helpers for Sinuous #49

Closed
luwes opened this issue Oct 12, 2019 · 2 comments
Closed

Handlebars helpers for Sinuous #49

luwes opened this issue Oct 12, 2019 · 2 comments
Labels
enhancement New feature or request hacktoberfest help wanted Extra attention is needed

Comments

@luwes
Copy link
Owner

luwes commented Oct 12, 2019

Kind of curious what would be needed to make this work.
It would be a compiler only, at runtime it would be too slow and heavy.

A handlebars to hyperscript compiler?
Hyperbars looks promising, https://github.com/vincentracine/hyperbars

Additional useful info on the topic here: adamhaile/surplus#26

@luwes luwes added enhancement New feature or request Severity: Medium labels Oct 12, 2019
@luwes luwes self-assigned this Oct 12, 2019
@luwes
Copy link
Owner Author

luwes commented Oct 22, 2019

Started a new package here (https://github.com/luwes/hyperstache) with a lightweight handlebars runtime covering the basic handlebars logic. A handle bars to template literals Babel plugin is still todo.

@luwes
Copy link
Owner Author

luwes commented Nov 2, 2019

A little follow up on Hyperstache, it's in a good shape now I believe.

The only thing that is left to make it work seamlessly with Sinuous is to write custom helpers that would add the right mappings. For example each would have to call the Sinuous map module for rendering lists. Also the variable expressions would need to be expanded to observables wrapped in a closure to make everything reactive.

Gonna leave this work until there is actually need for it.

@luwes luwes added hacktoberfest help wanted Extra attention is needed labels Oct 17, 2020
@luwes luwes changed the title Handlebars Handlebars helpers for Sinuous Oct 17, 2020
@luwes luwes removed their assignment Oct 17, 2020
@luwes luwes closed this as completed May 2, 2021
Repository owner locked and limited conversation to collaborators May 2, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant