1. {* 这是Smarty注释,不出现在编译后的输出中 *} 2. <html> 3. <head> 4. <title>{$title}</title> 5. </head> 6. <body> 7. 8. {* 另一个单行Smarty注释 *} 9. <!-- HTML注释将发送到浏览器 --> 10. 11. {* 这是一个多行 12. Smarty注释 13. 并不发送到浏览器 14. *} 15. 16. {********************************************************* 17. 多行注释块,包含了版权信息 18. @ author: bg@example.com 19. @ maintainer: support@example.com 20. @ para: var that sets block style 21. @ css: the style output 22. **********************************************************} 23. 24. {* 包含了主LOGO和其他东西的头文件 *} 25. {include file='header.tpl'} 26. 27. 28. {* 开发注解:$includeFile变量在foo.php脚本中赋值 *} 29. <!-- 显示主内容块 --> 30. {include file=$includeFile} 31. 32. {* 该<select>块是多余的 *} 33. {* 34. <select name="company"> 35. {html_options options=$vals selected=$selected_id} 36. </select> 37. *} 38. 39. {* 模板的cvs标记。下面的36应该是美元符号。 40. 但是在CVS中被转换了。 *} 41. {* $Id: Exp $ *} 42. {* $Id: *} 43. </body> 44. </html>
smarty中的注释
最新推荐文章于 2018-08-27 18:56:04 发布