https://github.com/buren/vue-template-editor
Example template editor written with in Vue.js.
https://github.com/buren/vue-template-editor
template-editor vuejs
Last synced: 7 months ago
JSON representation
Example template editor written with in Vue.js.
- Host: GitHub
- URL: https://github.com/buren/vue-template-editor
- Owner: buren
- Created: 2017-09-10T07:17:04.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-11-29T23:39:22.000Z (almost 4 years ago)
- Last Synced: 2025-01-20T04:18:59.945Z (9 months ago)
- Topics: template-editor, vuejs
- Language: JavaScript
- Size: 122 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example Template Editor
Example template editor written with in Vue.js.
## Template format
The template
```
Hi {username}. You've logged in {login_count} times.
```with the data
```js
{
username: 'buren',
login_count: 3
}
```yields
```
Hi buren. You've logged in 3 times.
```:warning: For some reason the anything enclosed in `<>` will be ignored in the template.
__Screenshot__

## Getting started
```
$ git clone https://github.com/buren/vue-template-editor.git
$ cd vue-template-editor
$ ruby -run -e httpd . -p 8000 # Run the server
```then open `http://localhost:8000`.