To generate the PHP, first build a model of the code you want to generate. Then, apply code templates to that new model.
要生成PHP首先要建立需要生成的代码的模型,然后将模板应用于这个新的模型。
This is an open system that allows the architect to both modify existing code templates and add new ones.
这是一个可开发的系统,它允许架构师修改已存在的代码模板也允许添加一个新的代码模板。
We also have interactive 'snippets' (code templates) and a snippet editor so users can create new snippets.
我们还提供了交互式的“snippets”(代码模板)及snippet编辑器,这样用户就可以创建新的snippets了。
Notice how the template USES the XSL: result-document tag to build a new file for each module. It then USES the XSL: apply-templates tag to fill in the file with the code.
注意,该模板使用xsl:result - document标签为每个模块创建新文件,然后通过xsl:apply - templates标签将代码填写到文件中。
Notice how the template USES the XSL: result-document tag to build a new file for each module. It then USES the XSL: apply-templates tag to fill in the file with the code.
注意,该模板使用xsl:result - document标签为每个模块创建新文件,然后通过xsl:apply - templates标签将代码填写到文件中。
应用推荐