Front-end template engine arttemplate, backend template engine nvelocity

Source: Internet
Author: User
Tags call back

It ' s My first blog
Hello everyone, my name is Zenzen, my friends call me steamed bun, 21 years old, Hubei people, just graduated from university, learned. NET development. Last year, worked in Nanjing for a year, then did not get a diploma, find a job is quite difficult, others said no diploma,
and have no experience, and wages can only give a basissalary, but fortunately, and a few friends together, rented a house to live. The work experience in Nanjing did not say so much, at least let me see the programming of the world.
this July, quit the work in Nanjing, came to the city of Shenzhen, re-start looking for work, luck is good, the next day on the interview, the third day on the official work, salary treatment for me this kind of novice is OK, at least can let me in Shenzhen
The city has a life of its own.. Most of the first day of work is almost the same, the installation system, as well as the configuration of the necessary products on the computer, and then the afternoon to start working.
the manager gave the first task is to write a code generator, before he used other techniques to complete the code generator, but some areas still have some problems, need to adjust, and then let us use the backend template engine nvelocity do. At first, the fundamental
I don't know what this is for., and then slowly touch a little later, colleagues also gave me a copy of the information let me see, I slowly to this nvelocity have a little understanding, and began to use it corresponding to the front-end HTML page. I have the deepest impression of this nvelocity.
That is, the previous write interface, is the interface corresponding to the backendA generic handler, which then passes the data through Ajax and returns the AJAX data to the interface. Now is a generic handler for an interface that accesses the interface when it is not like the original
Input xxxx.aspx, but xxxx.ashx, then the general handler corresponds to the interface,in essence, the data is obtained through the general processing program, and the data is printed to the static interface via Nvelocity.
Http://www.cnblogs.com/hxling/archive/2011/10/23/2221918.html This is the basic use of it, its syntax is not difficult,easy to master, and it can call back the method in the background, as long as it will be in its format
The method name is defined, put out, and then use its $mytool. Getuname (uId), the above-mentioned link will be said, as long as the foundation, familiar with the good, for me this dishBird, a day or two can be mastered, in fact, and the MVC framework
Pretty much, when you use this nvelocity.
The back end of the nvelocity a rough talk, say, the front-end template engine arttemplate. There is a feature in the project that shows the people I care about, and the people who pay attention to me, are two data, and then at the beginning the manager asked me to design how to do this module
block, as my experience andinsufficient, can only think of with a div in the data of the people who are concerned about, a div to my people's data, but by controlling the Div's style:display= "none" (or "block"), and then the manager said, you do
Well, save with two Div, when you click on my attention show only the data of the people I'm interested in, and click on me to show people who follow me. But just in a div show, I really do not think of any solution, directly to the manager, I will not
do, the manager has any good method, the manager has found this front-end template for me Engine Atrtemplate, wrote me an example, and then let me follow the example to write this function, first of all to define a person I care about the data format, such as
List:{id:1,name: "Baozi"}, and then define a style I want to show on the page, just like the HTML base definition, <script type= "text/html" ><input type= ' CheckBox ' name= ' ChB '/>
</script> attached https://github.com/aui/artTemplate link, can download down reference. Oh, yes, I use the encapsulated syntax, you can also use the native
The syntax, actually almost, but I found that the package after the syntax, unexpectedly can not define variables, maybe I did not find, if there is Daniel know, please give instructions (not as nvelocity as defined variables to save value can be defined by #set), when I finished
This feature, I did find this front-end template engine to be very useful and a good template. And you define the data format, the data can be combined with nvelocity to bind the data, the two template engines can be used together to improve the project program
Maintainability, because the front end of the back end is really conducive to maintenance, where there is a problem to change where (so easy~).
Recently because of the company art to me this style and JS when I accidentally found a layer of this pop-up, style good-looking, functional sound, you can not use the alert to pop up, this layer for me as a novice, to solve the beautiful and functional
Combined with a small detail. Last attached link: http://layer.layui.com/.
This is my first blog, Today September 4, 2015, the day after the parade, as a novice programmer of the world, the future of the road is very long, to learn a lot of things, as a member of the programmer, I also want to do my part of the meager power
Share my experience, although not well written, but I have written in the heart, I hope that Daniel to give advice, I will be a regular writing, as my growth in the road of a record, refueling.

Front-end template engine arttemplate, backend template engine nvelocity

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.