anti_templating_en - noradle/noradle-doc GitHub Wiki
- html nest in code that nested in html again, too comlex
- marker like
<% ... %>
to mark code - print html in code like
<?php echo '<p>Hello World</p>'; ?>
- marker like
<%= form_for :article do |f| %>
<p>
<%= f.label :title %><br>
<%= f.text_field :title %>
</p>
<p>
<%= f.label :text %><br>
<%= f.text_area :text %>
</p>
<p>
<%= f.submit %>
</p>
<% end %>
remarks:
- 创造了自己的语法,f.label, f.text_field 等等,重复造轮子
- 讨厌丑陋的
<%= expression %> 和 <% statement %>