3 category: Ruby libraries
5 prism_languages: [jade]
17 meta(name="keywords" content="template language")
18 meta name="author" content=author
19 meta property='og:image' content=asset_url('foo.png')
20 meta property='og:image' content=(path_to_user user)
22 property='description'
23 content='this is the song that never ends')
30 meta(name="keywords" content="template language")
31 meta name="author" content=author
34 You can use parentheses, brackets, or none at all.
39 a class=[:menu,:highlight]
42 You can use Ruby expressions in attributes.
47 .card *{'data-url' => place_path(place)}
50 You can destructure Ruby hashes as attributes.
69 I am *Markdown* _text_!
73 Slim can handle your [Markdown](https://daringfireball.net/projects/markdown/syntax) content for longer content blocks or `code`.
74 Depending on your parser, like [Kramdown](https://kramdown.gettalong.org/quickref.html), other features might work, like assigning attributes or classes.
76 ### Embedded JavaScript
80 alert('Slim supports embedded javascript!')
108 ### Advanced whitespaces
112 ' This appends a whitespace
114 | This hackily prepends a whitespace
116 => 'This appends a whitespace'
118 =< 'This prepends a whitespace'
139 - <http://slim-lang.com/>