Skip to content

Commit

Permalink
refactor: update markdown docs (nocobase#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
katherinehhh authored Aug 17, 2024
1 parent 9f12906 commit b40d958
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
9 changes: 5 additions & 4 deletions docs/en-US/handbook/ui/blocks/other-blocks/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,21 @@ Inline Markdown blocks can also be added within form blocks and details blocks.

## Template engine

![20240811204945](https://static-docs.nocobase.com/20240811204945.png)

![20240817174742](https://static-docs.nocobase.com/20240817174742.png)


### string template

![20240811204803](https://static-docs.nocobase.com/20240811204803.png)
![20240817175031](https://static-docs.nocobase.com/20240817175031.png)

### Handlebars

Handlebars is a JavaScript templating engine that supports conditionals ({{#if}}) and loops ({{#each}}), but currently does not support custom helpers.

![20240811204856](https://static-docs.nocobase.com/20240811204856.png)
![20240817175355](https://static-docs.nocobase.com/20240817175355.png)

![20240811203846](https://static-docs.nocobase.com/20240811203846.png)
![20240817175501](https://static-docs.nocobase.com/20240817175501.png)


<a href="https://handlebarsjs.com/guide/builtin-helpers" target="_blank">Handlebars Syntax reference</a>
Expand Down
10 changes: 6 additions & 4 deletions docs/zh-CN/handbook/ui/blocks/other-blocks/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,19 @@ Markdown 区块无需绑定数据源使用,使用 Markdown 语法定义文本

## 模板引擎

![20240811204945](https://static-docs.nocobase.com/20240811204945.png)
![20240817174742](https://static-docs.nocobase.com/20240817174742.png)

### 字符串模板

![20240811204803](https://static-docs.nocobase.com/20240811204803.png)
![20240817175031](https://static-docs.nocobase.com/20240817175031.png)

### Handlebars

Handlebars 是一个 JavaScript 模板引擎,支持条件判断({{#if}})和循环({{#each}})等内置语法,目前暂不支持扩展helpers。

![20240811204856](https://static-docs.nocobase.com/20240811204856.png)
![20240817175355](https://static-docs.nocobase.com/20240817175355.png)

![20240811203846](https://static-docs.nocobase.com/20240811203846.png)
![20240817175501](https://static-docs.nocobase.com/20240817175501.png)

<a href="https://handlebarsjs.com/guide/builtin-helpers" target="_blank"> Handlebars 语法参考</a>

Expand Down

0 comments on commit b40d958

Please sign in to comment.