[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.

 

 

posted @ 2014-12-19 21:51  Zhentiw  阅读(168)  评论(0编辑  收藏  举报