You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I know, I proposed an alternative syntax, which is cleaner and doesn't need
instance_eval at all.
I am recently searching for a robust markaby-like template library that
would work both in opal and ruby for my bigger project. Your code seems
slick and clean and is already used by opal-browser, that's why I am trying
to start talk here.
31 mar 2015 19:04 "meh." notifications@github.com napisał(a):
The problem is that there are no HTML methods, it's all method_missing based, which would end up making the class very hard to debug if the mixin defined a method_missing.
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: