Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
ccbikai
2016-07-18 10:05:51 +0800
Commit
02796c6af1ad6176d493597e84f9189be43477cd
2 parents
26c201b0
38a1631d
Merge branch 'feature/vue'
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
1 deletions
.editorconfig
apps/example/views/action/index.hbs
package.json
public/js/example/hello.hbs
public/js/example/home.page.js
public/webpack.config.js
.editorconfig
0 → 100644
View file @
02796c6
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
...
...
apps/example/views/action/index.hbs
View file @
02796c6
...
...
@@ -31,6 +31,9 @@ iconfont 新建项目,使用 class 控制图标样式,不要用 unicode
支持 一个按钮,两个按钮,多个按钮
每个按钮支持自定义事件
<h2>
Handlebars Template
</h2>
<p>
Hello,
<span
id=
"hbs-placeholder"
></span>
!
</p>
<h2>
Vue 示例
</h2>
<div
id=
"app"
>
...
...
package.json
View file @
02796c6
...
...
@@ -54,6 +54,7 @@
"gulp-postcss"
:
"^6.1.0"
,
"gulp-sourcemaps"
:
"^2.0.0-alpha"
,
"gulp-util"
:
"^3.0.7"
,
"handlebars-loader"
:
"^1.3.0"
,
"husky"
:
"^0.11.4"
,
"nodemon"
:
"1.9.2"
,
"postcss-assets"
:
"^4.0.1"
,
...
...
public/js/example/hello.hbs
0 → 100644
View file @
02796c6
<span>
{{
text
}}
</span>
...
...
public/js/example/home.page.js
View file @
02796c6
var
tpl
=
require
(
'./hello.hbs'
);
var
Vue
=
require
(
'yoho-vue'
);
var
app
=
require
(
'example/home.vue'
);
...
...
@@ -31,4 +33,11 @@ var test = {
};
}
};
// Handlebars/HBS 模版例子
$
(
'#hbs-placeholder'
).
html
(
tpl
({
text
:
'Handlerbars'
}));
/* eslint-enable */
...
...
public/webpack.config.js
View file @
02796c6
...
...
@@ -53,7 +53,10 @@ module.exports = {
},
{
test
:
/
\.
css$/
,
loader
:
'style!css?-url'
}]
},
{
test
:
/
\.
hbs$/
,
loader
:
'handlebars-loader'
}
]
},
resolve
:
{
modulesDirectories
:
[
'node_modules'
,
'./vue'
]
...
...
Please
register
or
login
to post a comment