jindw / lite Goto Github PK
View Code? Open in Web Editor NEWLite Template Engine
Home Page: http://www.xidea.org/lite
Lite Template Engine
Home Page: http://www.xidea.org/lite
API:http://www.xidea.org/lite/feature-xml.html
当属性输出 (如<button disabled="${action.disabled || null}" ..)。 如果属性是一个唯一的表达式(没有其他语法或者文本);且表达式值为null时(null 非 "null"),该属性将做为一个整体不被输出(属性名等也不会输出)
我现在用在单选按钮上,发现并不生效,如下图:
var conf = {
contentType: "text/html; charset=utf-8",
encoding: 'utf-8'
};
this.engine = new LiteEngine(viewPath, conf);
这里config是空的
thiz.onChange(result.path,result.code,result.config)
var tpl = new Template(code,config);
What is the current behavior?
In my program, i want to use js render html by template with inclued template in window os
If the current behavior is a bug, please provide the steps to reproduce.
code below;
item.xhtml
<p>${data.test}</p>
detail.xhtml
<c:widget path="/widget/test/item.xhtml"></c:widget>
index.js
var tpl = require('./detail.xhtml');
tpl({data:{test:"xxx"}})
What is the expected behavior?
this code is work in linux or window, but it's not work in window
Other relevant information:
lite version: [email protected]
Node.js version: v8.9.4
Operating System: windows10
Additional tools: no additional tools
auto data drived ui programing
<div c:live-widget="test">
<h3> this is a live widget( ${title} )</h3>
<p c:onclick=" user.name='jindw' "> click to change username: ${user.name} </p>
<p c:onclick=" title='clicked title' "> click to change title! </p>
</div>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.