Staticfy
Staticfy copied to clipboard
Add support for Rails
I don't have any experience with rails.
but by googling around, i found out that rails links look like this
<%= stylesheet_link_tag "filename" %> // for css
<%= javascript_include_tag "customjsFile", "data-turbolinks-track" => true %> // for js
<%= image_tag("rss.jpg", :alt => "rss feed") %> // for images
This differs from python frameworks where you have to write the enclosing html by yourself
e.g <script>{{url_generator}}</script>
In the case of rails the <script> tags are generated for you.