-
Notifications
You must be signed in to change notification settings - Fork 16
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
Addition of support for template languages other than Dust #103
Comments
@josephdenne Are there any particular engines you'd like us to start with? What I've done so far is fully decouple Dust from the core and turn it into its own module interface, similar to what @jimlambie has been doing for API data stores. This interface consists of a set of standardised lifecycle functions that core will expect engines to implement (and will validate against). We can start taking this interface and building support for the various engines we want to ship with, but it also allows the community to build their own interfaces to add support for additional engines. This would happen in the same way they can currently install custom Dust helpers and filters, which effectively needs you could use virtually any templating engine with Web without having to touch the core. Any thoughts appreciated! |
Template engines I think we should start with (I can help write these modules @eduardoboucas)
|
Further points from Slack:
{
"templates": {
"engine": "dustjs-linkedin",
"extension": "html"
}
}
|
Thanks for the feedback @abovebored! I'll let you know once I've finished the module interface so we can start integrating some engines. On your points:
I'll push what I have so far to a branch. It won't be ready for a while, but at least we'll all be able to see the shape things are taking and feedback as we go. |
Background: It's quite a volatile area for discussion - everyone seems to have a different opinion (see this thread for Django), so I thought of this solution so people can control globally what extension they use. Obviously we can set a default that makes the most sense per language.
|
Side-lol: remember the CSS Zen Garden? It would be funny to do a version of that with multiple template languages! |
One more thing... please update and add/delete tests as you go? |
@jimlambie Absolutely! 👊 |
Closed by 1255df3 |
No description provided.
The text was updated successfully, but these errors were encountered: