Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

false #7

Closed
wozzup opened this issue Apr 11, 2015 · 2 comments
Closed

false #7

wozzup opened this issue Apr 11, 2015 · 2 comments

Comments

@wozzup
Copy link

wozzup commented Apr 11, 2015

false

@BelinChung
Copy link
Owner

Hi
在很前期的时候,F7 是还没有 Template7 的,所以 HiApp 使用了 Mustache.js ,后来有了 Template7 ,自然选用了内置的 Template7 ,不过他们的语法是相同的。
不过还是要说一下 HiApp 只是 Demo,你不应该在这个基础上改成自己的 APP,require text 当然也不是必要的,你可以选择自己喜欢的模板加载方式。

@BelinChung
Copy link
Owner

尝试下这样?

var contactsHtml = Template7.templates.contactsTemplate({
      tel: '(999)-111-22-33',
      email: 'contact@john.doe'
});
mainView.router.loadContent(contactsHtml);

你给的一部分代码也很难确定问题所在,建议你断点,一步一步跟,看哪里出问题了。

@wozzup wozzup changed the title 关于 requirejs text exit Apr 14, 2015
@wozzup wozzup changed the title exit false Apr 14, 2015
@wozzup wozzup closed this as completed Apr 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants