Coder Social home page Coder Social logo

lite's People

Contributors

jindw avatar jinjinyun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lite's Issues

当变量输出值为null时 属性还保留

API:http://www.xidea.org/lite/feature-xml.html

当属性输出 (如<button disabled="${action.disabled || null}" ..)。 如果属性是一个唯一的表达式(没有其他语法或者文本);且表达式值为null时(null 非 "null"),该属性将做为一个整体不被输出(属性名等也不会输出)

我现在用在单选按钮上,发现并不生效,如下图:

qq 20170915111243
qq 20170915111320

配置传入未生效

   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);

can not find 'widget' path when use javascript to impormt('require(xxx.xhtml)') template with inclued template ('<widget path='xxxx.html'>') in windows OS

Bug report

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

live widget support

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>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.