htemplate

htemplate is a very distinctive HTML template engine. It's an alternative. It uses pure markup to build web templates and components. We only use basic HTML knowledge. There's no need to write JavaScript.

htemplate only employs HTML includes `template` `iframe` markup, and `h-tmpl`, `h-slot`, `h-import` attributes. It depends on these 5 little keywords to provide a component system for front-end web development. It can make the page structure easier. There's no need for a heavy compile process like Vue or React, and no need for server - side rendering. It supports previewing on a static page.html file.

htemplate模板引擎测试

测试案例1: 基本使用

基本模板测试

这是一个基本的模板测试案例。

测试案例2: 带属性的模板

卡片标题
卡片内容区域

测试案例3: 嵌套模板

嵌套模板测试

嵌套卡片标题
  • 嵌套列表项 1
  • 嵌套列表项 2
  • 嵌套列表项 3
  • 测试案例4: 多层嵌套

    第一层嵌套

    第二层嵌套

    第三层嵌套

    这是最内层的内容

    测试案例5: 模板内部包含h-tmpl属性

    模板内部嵌套测试

    嵌套的BasicTemplate标题

    这是嵌套在TemplateWithNestedTmpl中的BasicTemplate内容。