浏览代码

Update doc

父节点
当前提交
a9a8d81a3d
签署人:: Brendan Abolivier <contact@brendanabolivier.com> GPG 密钥 ID: 8EF1500759F70623
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      README.md

+ 3
- 1
README.md 查看文件

145
 
145
 
146
 ## Templating
146
 ## Templating
147
 
147
 
148
-Each e-mail sent by the form follows a template described in `template.pug` (it's [Pug](pugjs.org/)). If you want to change the way the e-mails you receive are displayed in your mailbox, just edit it! You don't even need to restart the server aftewards :smile:
148
+Each e-mail sent by the form follows a template described in `template.example.pug` (it's [Pug](pugjs.org/)). If you want to change the way the e-mails you receive are displayed in your mailbox, just edit it! You don't even need to restart the server aftewards :smile:
149
 
149
 
150
 The template also features custom fields, iterating over the `custom` object, containing the field's label and user-input value:
150
 The template also features custom fields, iterating over the `custom` object, containing the field's label and user-input value:
151
 
151
 
156
 }
156
 }
157
 ```
157
 ```
158
 
158
 
159
+The template needs to be named `template.pug`. If no template could be found under this name, SMAM will use a default one, which features both default and custom fields, and should be sufficient for non-advanced usage.
160
+
159
 ## Personnalising
161
 ## Personnalising
160
 
162
 
161
 As you might have already seen, the contact form is generated without any form of style except your browser's default one. But that doesn't meen that you have to add an ugly form to your site to receive contact e-mails, as every element has a specific id (beginning with the `form_` prefix), allowing you to use your own style on your contact form.
163
 As you might have already seen, the contact form is generated without any form of style except your browser's default one. But that doesn't meen that you have to add an ugly form to your site to receive contact e-mails, as every element has a specific id (beginning with the `form_` prefix), allowing you to use your own style on your contact form.