Ruby eruby: Difference between revisions
From wikinotes
(→Tags) |
|||
Line 6: | Line 6: | ||
<blockquote> | <blockquote> | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |||
| homepage || http://www.modruby.net/ | |||
|- | |- | ||
| text helpers (ex: simple_formT) || https://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html | | text helpers (ex: simple_formT) || https://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html |
Revision as of 00:10, 31 August 2021
A templating engine built using ruby. Commonly used within ruby rails .
File extension is .erb
.
Documentation
homepage http://www.modruby.net/ text helpers (ex: simple_formT) https://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html
Tags
<!-- comment --> <%# comment %> <!-- NOTE: no comments can escape eruby end '%>' --><!-- variable value --> <%= value %><!-- statements --> <% 5.times do %> <p>hello.</p> <% end %>
Rails Helpers
link_to('homepage', 'https://example.com')