npm

Need private packages and team management tools?Check out npm Orgs. »

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)

install

npm i wxml2axml

Downloadsweekly downloads

2

version

0.0.9

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability