Codesmith Learning Record-Basic Knowledge

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.