Top "Slim-lang" questions

Slim is a lightweight template engine for Ruby whose goal is reduce the syntax to the essential parts without becoming cryptic.

Slim templates on Ruby on Rails, what are best practices

I have trouble understanding basic Slim syntax. First question, how to do you enter new line (line break)? Second request, …

ruby-on-rails templates slim-lang
Ruby on Rails - Make Slim the Default Template

I am working on a Ruby on Rails project and am needing to customize default views provided by Gems. The …

ruby-on-rails-3.2 slim-lang
form_for method using slim

I have looked at the documentation of slim, and I still can't figure out how to do this in slim: &…

ruby-on-rails slim-lang
How do I wrap span tags in a link_to in slim?

li = link_to 'Account', '#account', data: { toggle: 'tab' } I need span tags around 'Account'.

html ruby-on-rails ruby slim-lang
how to install slim tm bundle in sublime2

I would like to install the slim textmate bundle to sublime2. I went to this link slim textmate bundle I …

slim-lang
Convert ERB template to SLIM

Many of my views are SLIM templates and I wish to add a vote_form partial to my app. How …

ruby-on-rails slim-lang
Nesting a text inside a tag in slim

How do I nest the 'Featured' text inside the a tag, given the span, the text, and the other span …

ruby-on-rails ruby slim-lang
horizontally scrollable one line gallery with css

I would like a horizontally scrollable gallery like the one on the image. My current markup is this (it is …

html css slim-lang
In Slim templates, HTML comments on separate lines are rendered on the same line

When writing HTML comments in SLIM: /! The first line of comments /! The second line of comments The output becomes <!…

ruby templates slim-lang
How can I reference a javascript file with slim

I understand how to embed javascript using javascript: in a slim template. Is there a way for me to reference …

javascript slim-lang