-
Notifications
You must be signed in to change notification settings - Fork 7
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
No, I actually hate instance_eval, but it can be done better #5
Comments
a = "hue"
Paggio.html do |_|
_.div a
end The above will work. |
I know, I proposed an alternative syntax, which is cleaner and doesn't need I am recently searching for a robust markaby-like template library that
|
The problem is that there are no HTML methods, it's all |
How about supporting a theoretical code like this?
What I done here, is include a mixin, which moves all HTML tag methods into the class context. Sure, we would need to be extra careful not to override those. This way, it would encourage object-oriented programming with no problems related to instance_eval use.
This is how https://github.com/erector/erector works, afaik.
The text was updated successfully, but these errors were encountered: