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

Implementation idea suggestion (from email) #6

Open
inem opened this issue Oct 1, 2018 · 1 comment
Open

Implementation idea suggestion (from email) #6

inem opened this issue Oct 1, 2018 · 1 comment

Comments

@inem
Copy link
Owner

inem commented Oct 1, 2018

You may want to reuse Haml's parser at first if #-starting line (or any other non-Haml syntax) can be considered as just a special case of plain text lines. In that case, you may want to use haml_parser.gem or the parser in haml.gem.

For code generation and rendering, you can use temple.gem, a framework of template engines, to generate HTML from S-expression-like Ruby objects. But the main benefit of it is that it has some middlewares to optimize the performance of generated code by taking more time to compile it. So you can skip this part as well if the main usage isn't rendering the same template multiple times.

@inem
Copy link
Owner Author

inem commented Dec 11, 2018

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

1 participant