网页模板引擎 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

Two Scoops of Django

Two Scoops of Django

Daniel Greenfeld、Audrey M. Roy / CreateSpace Independent Publishing Platform / 2013-4-16 / USD 29.95

Two Scoops of Django: Best Practices For Django 1.5 is chock-full of material that will help you with your Django projects. We'll introduce you to various tips, tricks, patterns, code snippets, and......一起来看看 《Two Scoops of Django》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

在线进制转换器
在线进制转换器

各进制数互转换器

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具