On Tue, Jun 26, 2018 at 9:03 AM, David Gautier <david.gautier@kriom.net> wrote:
> Why do we (Rails coders) write views as templates using ERB ... ?
If I *have* to do front end work it's a lot easier to eyeball differences
between the ERB sources and `view source` in a browser.
And if views are ERB it's possible to delegate that work to front-end
folks who only do HTML/CSS/JS stuff.
> Is it a go idea to write views using pure ruby ?
It doesn't sound very maintainable to me, but that doesn't mean
there aren't use cases for it. If it works for you... ¯\_(ツ)_/¯
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDaeycea9nR1PfvMR%2BwRz4T6aT2h2eL5p8QZfeGtHkzaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment