Documentation ¶
Index ¶
Constants ¶
View Source
const ( LAYOUT_BODY_TAG = "{{ @RenderBody() }}" LAYOUT_TEMPLATE_DIRNAME = "Shared" //layout模板的文件在views目录下的文件夹名称,区分大小写 LAYOUT_TEMPLATE_FILENAME = "_Layout" //layout模板的文件名路径,区分大小写,后缀有suffix确定 )
Variables ¶
View Source
var LAYOUT_DATA string //layout文件的内容
View Source
var (
LAYOUT_TEMPLATE_FILE string //layout模板的文件 路径,区分大小写.文件后缀必须小写。 views/Shared/_Layout.html
)
View Source
var PthSep string //文件路径分隔符
View Source
var TMPLATE_DIR string //模板存放目录,默认运行目录下的views , 不包含末尾斜杠
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.