Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Fix #19 Compile Vue 2 templates #15

Merged
merged 9 commits into from
Sep 6, 2016
Merged

Conversation

posva
Copy link
Member

@posva posva commented Sep 5, 2016

Add support to compile Vue 2 templates.
The code can be reviewed already.

I'll add tests and some doc tomorrow.
I didn't rebase the commits because of the squash feature, but tell me if you want me to do it

.join(`${matches[1]}` +
`render: ${wrapRenderFunction(render.render)},` +
'staticRenderFns: [' +
`${render.staticRenderFns.map(wrapRenderFunction).join(',')}]`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing comma is missing.

@znck
Copy link
Member

znck commented Sep 6, 2016

Looks good. Go ahead with tests! 👍

@posva
Copy link
Member Author

posva commented Sep 6, 2016

@znck I added a simple test

@posva posva force-pushed the vue-compile-template branch from 651a25e to 0fd4520 Compare September 6, 2016 11:47
@znck znck merged commit ce3af3d into vuejs:master Sep 6, 2016
@posva posva deleted the vue-compile-template branch September 6, 2016 11:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants