Slim is a LICENSE licensed CATEGORY written in [[3. Reference/Software/Programming Languages/Ruby]]. - [Website](https://slim-template.github.io/) - [GitHub](https://github.com/slim-template/slim) - Documentation - AlternativeTo > QUOTE # Notability It has been my preferred templating language for Ruby for an extremely long time. If one must write HTML, this is the best way to avoid doing so directly. ## Implementations The native and most maintained version is written in [[3. Reference/Software/Programming Languages/Ruby]]. There are very similar languages for other development environments: - [Amber](https://github.com/eknkc/amber) for [[Go]] (unmaintained) - [Slang](https://github.com/jeromegn/slang) for [[Crystal]] - [Emblem.js](https://github.com/machty/emblem.js) for [[Javascript]] (unmaintained, related to [[Handlebars]]) - [Plim](https://github.com/avanov/Plim) for [[Python]] - [Pug](https://github.com/pugjs/pug) for Javascript (unmaintained, different but well loved) - [Pugneum](https://github.com/matheusmoreira/pugneum) for Javascript (active as of [[2023-10-25]], static fork of Pug) # Philosophy # OS Support # Features # Example ```slim doctype html html head title Slim Examples meta name="keywords" content="template language" meta name="author" content=author link rel="icon" type="image/png" href=file_path("favicon.png") javascript: alert('Slim supports embedded javascript!') body h1 Markup examples #content p This example shows you how a basic Slim file looks. == yield - if items.any? table#items - for item in items 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} ``` # Tips # References