Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 1.27 KB

struct.md

File metadata and controls

39 lines (34 loc) · 1.27 KB

Quick Start

I'm sure it will be easier than you can imagine.

Project structure

tmpUI can help you implement include and require in PHP (or similar backend languages) in template mode.
Just use the common project structure we used to have. For example, a structure like this.

.
├── index.html
├── favicon.ico
├── tmpui.checker.js
├── tmpui.js
├── assets
│   ├── *.css
│   └── *.js
├── lang
|   ├── cn.json
|   └── en.json
└── plugin
    ├── *
    │   ├── *.css
    │   ├── *.html
    │   └── *.js
    └── *
        ├── *.css
        ├── *.html
        └── *.js

Wrap-up

Simple enough, isn't it? Everything is in order, and it still has that familiar flavor.
tmpUI.js is the engine of tmpUI, index.html is the application entry file.
The tpl is generally used to store page templates, assets to store css and js used in the project, lang to store language files, and plugin to store third-party plugins.
Of course, you can also organize your project any way you like.

Start with examples

This document comes with 6 examples of code-related projects that you can run locally, read the code, get inspiration, and even apply directly to your real project