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

Why not erb? #2

Closed
yhara opened this issue Apr 13, 2019 · 2 comments
Closed

Why not erb? #2

yhara opened this issue Apr 13, 2019 · 2 comments
Labels
question Further information is requested

Comments

@yhara
Copy link
Owner

yhara commented Apr 13, 2019

Question: Why Ovto uses the o method instead of template engines like erb?

@yhara yhara added the question Further information is requested label Apr 13, 2019
@yhara
Copy link
Owner Author

yhara commented Apr 13, 2019

Answer: Biggest reason is that o was far easier to implement. I just wanted to make MVP quickly, and then found that o feels not so bad - I like it.

@yhara
Copy link
Owner Author

yhara commented Apr 13, 2019

I'm not sure we can support template engines. There are a couple of things to consider.

  • Normally template engines like erb outputs a HTML string. But what Ovto needs to render the view is VDom spec, which is a js object like {nodeName: "div", ...}.
  • How to specify event handlers?

@yhara yhara closed this as completed Apr 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant