Slim is a lightweight template engine for Ruby whose goal is reduce the syntax to the essential parts without becoming cryptic.
How to generate dynamic class name? li v-for='obj in objs' | {{ obj.id }} {{ obj.title }} div id="obj-{{ obj.id }} " …
vue.js slim-langI am learning Rails and I have seen these template engines. I have no experience with them (only erb). But …
ruby-on-rails haml erb slim-langI have a Rails controller in which I am setting a instance variable - @user_name = "Some Username" In my .…
ruby-on-rails ruby-on-rails-3 coffeescript haml slim-langJust to help other developers, because there is no similar question on SO. div class=(is_active? ? 'active' : 'inactive') div …
ruby-on-rails slim-langThere is a way to put ruby conditions inside javascript block? i.e. javascript: var config = { common_value_1 : 1, common_value_2 : 2 }; …
ruby slim-langOne way: javascript_tag do == "var all_product_ids = #{existing_ids.to_json};" == "var products_json = #{@filter.data.to_json};" …
ruby-on-rails ruby slim-langI was evaluating Slim as a replacement for HAML in a personal project, and it doesn't appear to handle HTML5 …
ruby-on-rails ruby haml templating slim-langIn rails slim (http://slim-lang.com/) the syntax for defining a new div with a class name "sample" is the …
html css ruby-on-rails ruby-on-rails-3 slim-langI'm trying to render a link preceded by an icon. I'm using Slim templating engine along with Bootstrap CSS. Usually …
ruby-on-rails ruby slim-lang