Skip to content

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

@liuxiucai

Description

@liuxiucai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions