Closed koron closed 4 years ago
fix #21
とりあえずテンプレートを複数ファイルに分けられるようにしたところ。 templates/channel_per_month/ ディレクトリに置いた *.tmpl が全部読み込まれる。 起点になるファイルは常に index.tmpl
*.tmpl
テンプレートの分け方のサンプルとして {{ template "attachement.tmpl" . }} で同名のテンプレートファイルを 2か所で利用するようにしてみた。 この時の . は Messaage 相当。
{{ template "attachement.tmpl" . }}
.
Messaage
index と channel_index も分けたほうが統一感があるが、 さほど大きくないので今はそのままとします。
fix #21
とりあえずテンプレートを複数ファイルに分けられるようにしたところ。 templates/channel_per_month/ ディレクトリに置いた
*.tmpl
が全部読み込まれる。 起点になるファイルは常に index.tmplテンプレートの分け方のサンプルとして
{{ template "attachement.tmpl" . }}
で同名のテンプレートファイルを 2か所で利用するようにしてみた。 この時の.
はMessaage
相当。