Fastcms官方文档
首页
  • 快速入门
  • 用户手册
  • 快速开始
  • 模板开发
  • 插件开发
接口文档 (opens new window)
提问 (opens new window)
  • Gitee (opens new window)
  • Github (opens new window)
首页
  • 快速入门
  • 用户手册
  • 快速开始
  • 模板开发
  • 插件开发
接口文档 (opens new window)
提问 (opens new window)
  • Gitee (opens new window)
  • Github (opens new window)
  • 快速开始

    • 构建源码
    • 代码生成
  • 模板开发

    • 模板结构
      • 概述
      • 模板的组成
      • 模板文件说明
    • 内置标签
    • 自定义标签
  • 插件开发

    • 插件结构
    • 如何开发插件

模板结构

# 概述

本文帮助您快速了解如何制作Fastcms模板文件,简单的说,其原理就是静态的html文件加网站标签组成Fastcms模板文件,标签是基于Freemarker实现

# 模板的组成

模板的zip压缩包解压后,必须为以下结构,方可安装成功

template
├── static
│   └── css
│   │   └── style.css 
│   └── js
|       └── fastcms.js
├── _layout.html
├── _template.properties
└── article.html
└── article_list.html
└── index.html
└── page.html
1
2
3
4
5
6
7
8
9
10
11
12

# 模板文件说明

文件 说明
static 模板静态资源目录
_layout.html 模板布局文件
article.html 文章详情默认模板文件
article_list.html 文章列表默认模板文件
index.html 首页文件
page.html 文章页面默认页面
_template.properties 模板描述文件

提示

_template.properties文件为必须文件,且必须有以下属性,并且template.id的值不能重复,否则会安装失败
template.path的值必须跟模板的zip压缩包文件名一致,否则会找不到模板文件

template.id=www.fastcms.com
template.name=fastcms
template.path=/fastcms/
template.version=0.0.1
template.provider=wjun_java@163.com
template.description=my fastcms site
1
2
3
4
5
6
上次更新: 2022/02/27, 02:44:28
代码生成
内置标签

← 代码生成 内置标签→

Theme by Vdoing | Copyright © 2016-2022 小橘灯科技 | .粤ICP备20053122号.
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式