26 Mar '17, 10am

@yucao24hours tr *{ class: status == 0 ? 'success' : 'danger' } というのもできます。ハッシュを返すものならなんでも*で展開できるのでヘルパー化したりはしやすいと思う https://t.co/j6gTMMtyfi

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 © [email protected]} [email protected]}

Full article: http://www.rubydoc.info/gems/slim/frames#Splat_attributes__

Tweets

@omochimetaru 使用例はこういう感じ https://t.co/4AKpxh3Vj3

rubydoc.info 25 Mar '17, 8pm

.description_by_method_name ⇒ Hash{Symbol => String} .generate_test_group ⇒ Petitest::TestGroup .inherited (child) ⇒ Objec...