wxml2axml

0.0.9 • Public • Published

wxml2axml

安装

npm i wxml2axml

使用

let wxml2axml = require('wxml2axml')
let str = `<!--index.wxml-->
<view class="container">
  <view  bindtap="bindViewTap" class="userinfo">
    <image class="userinfo-avatar" src="{{userInfo.avatarUrl}}" background-size="cover"></image>
    <text class="userinfo-nickname">{{userInfo.nickName}}</text>
  </view>
  <view class="usermotto">
    <text class="user-motto">{{motto}}</text>
  </view>
</view>
`
let out = wxml2axml.compiler(str);
 
console.log(out)

Readme

Keywords

Package Sidebar

Install

npm i wxml2axml

Weekly Downloads

4

Version

0.0.9

License

ISC

Last publish

Collaborators

  • rememberwz