网页模板引擎 SMX

码农软件 · 软件分类 · 模板引擎 · 2019-08-25 11:57:11

软件介绍

SMX (Server Macro Expansion) 是一个跨平台的HTML生成脚本语言,比一个比 PHP、Perl之类的编程语言更加高级的模板,主要用来生成网页。原先是用来做金融报表系统的,内嵌支持 ODBC 查询、HTML预格式化、被 Perl 或者 PHP等引用等等。支持基本的认证和基于摘要的认证。

代码示例:

%null('simple nonvalidating way to handle XML data\, public domain license)

%define(xml-top,%nil(
%if(%b%
,
%define(xml,%invoke(xml-top,%value%,%t%,%b%),t,'b)
%rxsplit(%d%,<%t%([^>]*)>(.*?)
,%set(value,%subx(2))
%set(attr,%trim(%subx(1)))
%out(%expand(%b%))
)
,%rxmatch(%d%,<%t%([^>]*)>(.*?)
,%out(%subx(2))
%gset(xml-attr,%trim(%subx(1)))
)
)
),d,t,'b)

%null(' FOR EXAMPLE
%module(xml.htx)

%xml-top(%client-body%,new-order-notification
%xml(merchant-private-data,
%gset(clientid,%xml(clientid))
%gset(weight,%xml(weight))
)
%set(gordernum,%xml(google-order-number))
%set(gbuyerid, %xml(buyer-id))

... etc ...
)
)

本文地址:https://codercto.com/soft/d/13132.html

Introduction to Tornado

Introduction to Tornado

Michael Dory、Adam Parrish、Brendan Berg / O'Reilly Media / 2012-3-28 / USD 23.99

Tornado is a scalable, non-blocking web server and web application framework written in Python. It is also light-weight to deploy, fun to write for, and incredibly powerful. Tornado was written with p......一起来看看 《Introduction to Tornado》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具