07-node.js client-side rendering, server-side rendering and server-side rendering message board (without database, it is suitable for novices to get started. How does the node server render pages)
1, Client side rendering and server side rendering
1. Client side rendering (SSR)
Html is only a static file. When the client requests, the server does not do any processing, and directly returns it to the client in the form of the original file. Then, according to the JavaScript on HTML, DOM is generated and html is inserted.
2. Servic ...
Posted by escocia1 on Fri, 04 Mar 2022 11:52:04 +0100
go language template engine, introduction to gtpl use
gtpl
Share a go language template engine written by yourself today. Convenient for template grammar analysis at very fast speed when the go language outputs HTML rendering. Compared with the go language official library html/template, the syntax of gtpl is concise, flexible and easy to use.
The ultimate goal of gtpl is to completely replace t ...
Posted by stevepatd on Fri, 18 Feb 2022 18:21:16 +0100
New features of C++11/14 -- template enhancement and variable templates
Template enhancement
1. External template
1) Problems of traditional C + +
In traditional C + +, templates are instantiated by the compiler only when used. In other words, as long as the fully defined template is encountered in the code compiled in each compilation unit (file), it will be instantiated. This results in an increase in compi ...
Posted by slick101 on Wed, 19 Jan 2022 06:59:05 +0100