Questions tagged [slim-lang]

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

Slim is a template language whose goal is reduce the syntax to the essential parts without becoming cryptic.

The initial design of Slim is what you see on the home page. It started as an exercise to see how much could be removed from a standard html template (<, >, closing tags, etc...). As more people took an interest in Slim, the functionality grew and so did the flexibility of the syntax.

Slim will strive to maintain simplicity, but not everyone's definition of a readable syntax is the same. The docs will show you the options.

Slim uses Temple and Tilt. If you want to learn how Slim works, you'll need to study these projects.

Source: Slim-lang.com (About)

681 questions
-1
votes
2 answers

How do I create a form with checkboxes in slim?

I guess this goes to the fundamentals of rails. Is it possible for me to simple have a checkbox and a submit button without it being tied to a model? I found that most Rails example out there are using form_for and this needs to be bound to a…
user1584575
  • 731
  • 3
  • 10
  • 20
-1
votes
1 answer

ruby, sinatra, padrino,slim

I need to develop a simple File Upload I'm using padrino and slim-templates. Also generated my views using the padrino command generator such as padrino g admin_pages modelName. Now I want to add a fileUpload field to the generated code... I'm…
lyons
  • 89
  • 10
-2
votes
1 answer

Rails -- How to write a link which will be called to call a action with a parameter in controller ?

Example, in my controller: class GymController < ApplicatoinController def store(page) ... end end And now, I want call this action by a link in gym.html.slim: - a ... but how to call it by link format, and how to write route.rb file?
Shao Kahn
  • 67
  • 2
  • 11
-2
votes
1 answer

Create a like method for filter query on Rails, smart_listing gem

I want to filter the content of a table who i created with smart_listing gem For the unknown, SmartListing also known as smart_listing is a Ruby Gem that provides a tools to create lists on your Rails app I can use the pagination but the filter…
Marcos R. Guevara
  • 5,258
  • 6
  • 19
  • 44
-3
votes
1 answer

No, really, how do you install the Ruby-Slim package in SublimeText2?

I tried to follow the Ruby-Slim installation instructions provided in the answers to this question, but I don't know what to do now that I have downloaded a file or folder named 'Ruby-Slim.tmbundle' to the following location…
kzoom
  • 241
  • 1
  • 2
  • 12
-5
votes
1 answer

why does my css not work?

I'm not able to call the CSS style, I don't know what the reason is, I'm going to do that. The code is shown below orders.scss table{ width:30em; table-layout:fixed; } td { width:100%; word-break:keep-all; white-space:nowrap; …
zhanghao
  • 25
  • 6
1 2 3
45
46