初次提交

This commit is contained in:
2024-11-27 11:03:51 +08:00
commit f26d7e4102
18 changed files with 1236 additions and 0 deletions

19
test/main.html Normal file
View File

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
<title>{{data.name}}Love</title>
</head>
<body>
<h1>{{data.name}}</h1>
<div id="love-list">
<use :for="item in data.love" from="./mod1" name="love-item" data="item"/>
${afdfs}
</div>
</body>
</html>

8
test/mod1.html Normal file
View File

@ -0,0 +1,8 @@
<template name="love-item">
<div data-love="{{data}}">
<span :if="data=='eat'">I love eating</span>
<span :else="data=='sleep'">I love sleeping</span>
<span :else="data=='play'">I love playing</span>
<span :else>I don't love anything</span>
</div>
</template>