当前位置:网站首页>Openresty template real-time rendering Lua resty template
Openresty template real-time rendering Lua resty template
2022-07-24 01:17:00 【dragonpeng2008】
GitHub - bungle/lua-resty-template: Templating Engine (HTML) for Lua and OpenResty.
If you've studied JavaEE Medium servlet and JSP Words , You should know JSP The template will eventually be translated into Servlet To execute ;
and lua-resty-template The template engine is similar to JSP, The template file will eventually be translated into Lua Code , And then through ngx.print Output .
lua-resty-template The general contents are :
- Template location : Where to find templates ;
- Variable output / escape : Variable value output ;
- code snippet : Execute code snippets , Complete as if/else、for Such complex logic , Call the object function / Method ;
- notes : Explain the meaning of code snippets ;
- include: Contains another template fragment ;
- other :lua-resty-template It also provides fragments that do not need to be parsed 、 Simple layout 、 Reusable code blocks 、 Macro instructions and other support .
Basic grammar
- {(include_file)}: Contains another template file ;
- {* var *}: Variable output ;
- { { var }}: Variable escape output ;
- {% code %}: code snippet ;
- {# comment #}: notes ;
- {-raw-}
边栏推荐
- Tutorial on principles and applications of database system (051) -- MySQL query (XIII): using queries in DML statements
- Tutorial on the principle and application of database system (046) -- MySQL query (VIII): group by
- Single chip microcomputer learning notes 3 -- single chip microcomputer structure and minimum system (based on Baiwen STM32F103 series tutorials)
- [STM32] basic knowledge of serial communication
- 数字化转型时代的企业数据新基建 | 爱分析报告
- J'ai choisi la mauvaise technologie au mauvais moment.
- Graphic pipeline (I) post-processing stage alpha test template test depth test mix
- [reply] about the fact that I chose the wrong technology at the wrong time
- JS related knowledge
- RPM build has installed the dependent package, but it still reports an error. There is no module provided in the package
猜你喜欢

Hypothesis test of Pearson correlation coefficient

复现一句话木马

docker mysql

HCIP第六天_特殊区域综合实验

OSI open system interconnection model and tcp/ip model

What impact does the European "gas shortage" have on China?

Error running ‘XXX‘: Command line is too long. Shorten command line for AudioTest or also ...

Create.Img image file

制作 .Img 镜像文件

C language database: detailed description. Use the student management system to understand the operation of the database, which is simple and easy to understand.
随机推荐
OSI open system interconnection model and tcp/ip model
Scroll View implémente la mise à jour déroulante (empêche onload d'entrer dans la page de mise à jour initiale du Shell Triggered pour déclencher la mise à jour déroulante pour True)
OSPF experiment
Is flush opening an account risky and safe?
[untitled]
Hypothesis test of Pearson correlation coefficient
IDEA设置 自动导包删无用包
【複盤】關於我在錯誤的時間選錯了技術這件事
Talk about moment of inertia
Matlab extracts the original data in the illustrations of the paper - fig2data tool
Group chat room based on UDP
Implementation of singleton mode and prevention of reflection and serialization
Hot 100 depth first
Create a self signed certificate to digitally sign exe files
Under instruction
Prometheus+node exporter+grafana monitoring server system resources
Understanding of flexible array in C language
Tutorial on the principle and application of database system (044) -- MySQL query (VI): using the limit option to realize paging query
出于数据安全考虑 荷兰教育部要求学校暂停使用Chrome浏览器
Skywalking distributed system application performance monitoring tool - upper