首页 > 代码库 > [MODX] 2. Chunks $

[MODX] 2. Chunks $

Chunk in Modx can cut your template into samll pieces to make code reuseable.

[[$chunk_name]]

技术分享

 

For example we can replace the html header with [[$html_header]], it should work as before.

 

技术分享

 

技术分享

[MODX] 2. Chunks $