The codesmith template consists of text and attributes.
The code is automatically generated by the combination of encoding and attributes.
The format of the attribute directive declaration at the beginning of the template is as follows:
<% @ Property name = "samplestringproperty" default = "somevalue" type = "system. String" %>
Name is the variable name.
Default is the default value.
Type
Codesmith supports all. Net Basic Types
Codesmith also supports
<SCRIPT runat = "template"> </SCRIPT>
Script Commands are consistent with run = "server" in Asp.net. You can write code and public functions.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4C/2D/wKiom1Q34_zAZE9zAAH66Uk1U9U250.jpg "Title =" 1.png" width = "200" Height = "200" alt = "wkiom1169_zaze9zaah66uk1u9u250.jpg"/>
A simple template is a basic component.
This article is from the "Sun" blog, please be sure to keep this source http://zachary.blog.51cto.com/1939236/1562341
Codesmith Learning Record-Basic Knowledge