Created
September 25, 2012 07:38
-
-
Save matsumos/3780473 to your computer and use it in GitHub Desktop.
slimish-jinja2 で block を使う
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
slimish-jinja2 で block を使う | |
微妙にわかりにくかったのでメモ | |
base.slim | |
------------------------------------ | |
!5 | |
html | |
head | |
title | |
- block title | |
| | website | |
index.html | |
------------------------------------ | |
- extends "base.slim" | |
- block title | |
|hoge | |
= super() | |
- set active_page = "home" | |
で、タイトルに hoge | website って表示されるます |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
タイトルくらいだったら
set page_title ="home"
と
title =page_title | website
でよかった