Home > Net >  On the.net using HTM template to generate static problem
On the.net using HTM template to generate static problem

Time:11-03

I again problems haven't online for a long time did not find all want to help you a great god again now want to solve the problem of classification of a cycle of few words said all links to provide the resources under the demo of what if there is code that is
This is to replace the template keyword

The following is want to achieve in rendering






There is a more want to solve the problem if there is a solution of speaks enthusiastically welcome



CodePudding user response:

Vue will use,,, we can on the page loop, there can be a placeholder, processing json object,,

CodePudding user response:

reference number 1/f, purple soul a reply:
vue will use it,,, you can cycle on the page, you can have a placeholder, processing json object,,


Used if there is any specific examples such as connection, the code is ok

CodePudding user response:

Old technology can be eliminated, and learn to use the MVC view can also

CodePudding user response:

The
reference Buddha is a supreme commander reply: 3/f
old technology can be eliminated, learn to use the MVC view can also
I don't want to use, but the customer wants to so what could I get

CodePudding user response:

String substitution is
 string. Replace (" $title, "the title.) Replace (" [$abcde]," abcde); (


I'm dizzy!

CodePudding user response:

If the loop to replace, it is
 foreach (var p in ProductList) 
HTML +=templateString. Replace (" $" uid, p.i which oString ()). The Replace (" $title ", p.N ame);


Alas!

CodePudding user response:

The number 80, every day to work overtime, also regardless of rice,

CodePudding user response:

The Replace to Replace is various, including the page you want to Replace, page can imagine into text, loaded in

CodePudding user response:

There are a lot of text template engine, (including webfrom aspx, in fact, you can also as a text template engine)

We use is more convenient in c # is T4 template engine and Razor template engines,

Each engine has, of course, the engine of grammar rules

Seen from your figure, this should be a js template engine, js template engine also has a lot of classes, so first you have to ask clear front wrote this he is the engine of the template, and then to find whether there is a corresponding in c # engine parsing techniques, if not then call nodejs to complete, after all he is js engine, let's make a nodejs get

CodePudding user response:

In many way, you really is to generate the content? Still say front as long as json, something on the front end with js dynamically generated dom?

CodePudding user response:

Is directly generated in the background

CodePudding user response:

Generate the method of static files out, in the manner to generate pseudo static routing cache pages,

CodePudding user response:

Read and then is the Replace template content
  • Related