Giter Club home page Giter Club logo

Comments (8)

chemzqm avatar chemzqm commented on June 4, 2024

@morphet81 请说明你的操作系统,最好把你写的 import 和 template 文件也发给我,因为这块我测试过 Mac 和 win7 是可用的。

官方 demo https://mp.weixin.qq.com/debug/wxadoc/dev/demo.html 的 API 下面页面也用了 template 和 import ,能否测试下是否在你那边可用?

from wept.

morphet81 avatar morphet81 commented on June 4, 2024

Hi,

I'm on Mac. Here are screenshots of the project structure and import line. The console said couldn't find the imported file.

Le 20/10/2016 à 15:48, Qiming zhao a écrit :

@morphet81https://github.com/morphet81 请说明你的操作系统,最好把你写的 import 和 template 文件也发给我,因为这块我测试过 Mac 和 win7 是可用的


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/26#issuecomment-255033504, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALXpLULboKD1zMc-X3HGeN8SMPxx2ZY7ks5q1xy3gaJpZM4Kb0Bi.

from wept.

chemzqm avatar chemzqm commented on June 4, 2024

@morphet81 我在 github 上看不到你发的附件,我需要你写的 import 那部分的代码

from wept.

morphet81 avatar morphet81 commented on June 4, 2024

Yeah I see it.... Here is the code

<import src="/templates/message.wxml" />

<view class="container">
    <input type="text" bindinput="editMessage" value="{{newMessage}}" placeholder="Type message here" />
    <button bindtap="addMessage">Add</button>
    <block wx:for="{{messages}}" wx:for-item="message">
        <template is="message" data="{{message:message}}" />
    </block>
</view>

Pages are in "/pages/message/"

from wept.

chemzqm avatar chemzqm commented on June 4, 2024

@morphet81 是我这里的 bug,当时解析时没有对 ’/‘ 开头的全路径做好兼容。

from wept.

morphet81 avatar morphet81 commented on June 4, 2024

Ok thanks. Changing to '../../' now works. It was not working earlier that day, I think there are some bugs in WeChat IDE with the location of templates.

from wept.

morphet81 avatar morphet81 commented on June 4, 2024

Pretty nice tool though ! 很谢谢你!

from wept.

chemzqm avatar chemzqm commented on June 4, 2024

@morphet81 也感谢你的反馈,等下版本发布就可以使用绝对路径的 template 了

from wept.

Related Issues (20)

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.