Slim is an actively used template language created in 2011.

8Years Old 6,099Users 0Jobs
  • Slim ranks in the top 50% of languages
  • the Slim website
  • Slim on github
  • Slim first appeared in 2011
  • file extensions for Slim include slim
  • I have 47 facts about Slim. what would you like to know? email me and let me know how I can help.

Example code from the web:

doctype html
html
  head
    title Slim Examples
    meta name="keywords" content="template language"
    meta name="author" content=author
    javascript:
      alert('Slim supports embedded javascript!')

  body
    h1 Markup examples

Example code from Linguist:

doctype html
html
  head
    title Slim Examples
    meta name="keywords" content="template language"
    meta name="author" content=author
    javascript:
      alert('Slim supports embedded javascript!')

  body
    h1 Markup examples

    #content
      p This example shows you how a basic Slim file looks like.

      == yield

      - unless items.empty?
        table
          - for item in items do
            tr
              td.name = item.name
              td.price = item.price
      - else
        p
         | No items found.  Please add some inventory.
           Thank you!

    div id="footer"
      = render 'footer'
      | Copyright © #{year} #{author}

Trending Repos

repo stars description

Last updated December 10th, 2019

Edit Slim