-
Notifications
You must be signed in to change notification settings - Fork 98
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
Add support for preview.html file that overrides markup.html allowing template languages to be used in the markup file. #3
Comments
Hi @jondkinney, For the initial release of Astrum we've focussed on just supporting HTML for component templates. You can add ERD, HAML, or SLIM into the We've previously discussed adding support for a Do you think that this approach would solve your issue? |
@matt-west thanks for getting back to me and for all your work on Astrum! The situation you describe is a step in the right direction, I think, but my goal would be to have the component source code available to copy/paste in the templating language it's written in so that we wouldn't have to reverse engineer the HTML to SLIM, for example. |
@jondkinney Apologies my explanation was not as clear as it could be. Adding a
The |
Aaah, gotcha. That's definitely a workable solution! I guess the main downside would be needing to specify the source code in both the templating language and pure HTML, so if something changes you'd have to update it in both places. But yea, definitely that would allow us to start using it now! |
Cool. I've added this to the roadmap. https://github.com/NoDivide/astrum/wiki/Project-Roadmap |
Ref #84 |
For instance, in a rails app, we'd use ERB, or HAML, or SLIM. I suppose we could just write using the templating language of our choice in the .html file? Not sure what implications that'd have for syntax highlighting though.
The text was updated successfully, but these errors were encountered: