Slim is a Ruby 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. Short syntax without closing tags (Using indentation instead) HTML style mode with closing tags. Slim is a fast, lightweight templating engine with support for Rails 3 and later. It has been heavily tested on all major ruby implementations. We use continuous integration (travis-ci). Slim uses Temple for parsing/compilation and is also integrated into Tilt, so it can be used together with Sinatra or plain Rack.

Features

  • Elegant syntax
  • Automatic HTML escaping by default
  • Highly configurable
  • Supported by all major frameworks, like Rails, Sinatra, etc.
  • Full Unicode support for tags and attributes
  • Embedded engines like Markdown and Textile

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Slim Template

Slim Template Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Slim Template!

Additional Project Details

Operating Systems

Windows

Programming Language

Ruby

Related Categories

Ruby Admin Templates, Ruby Languages Software

Registered

2021-10-21