Created
August 18, 2013 15:02
-
-
Save grindars/6262076 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
view(:local_variable => "a", :cond => false) do | |
~ div do | |
~ local_variable | |
end | |
~ content_tag("span") | |
if cond | |
~ div("true") | |
else | |
~ div("false") | |
end | |
~ div("hi") | |
end |
I do not cleanly understand why to develop yet another markup language. In one hand, it simplifies inserting templates into controller. In other hand, even bit view code in controller is an evil. Mixing MVC levels is bad practice.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
?