1.0.11 • Published 6 years ago

codeinvue v1.0.11

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

codeinvue

write HTML, css, javascript code in vue file directively

Installation

NPM

npm install codeinvue --save

Usage

main.js

import Vue from 'vue'
import App from './App.vue'
import codeinvue from './lib/codeInVue'

Vue.use(codeinvue);

new Vue({
  el: '#app',
  render: h => h(App)
})

app.vue

    <div v-marked class="html">
      <!-- write your markdown syntax html code directively hear -->
    </div>

    <div v-marked class="css">  <-- remember to add classname(css or html or javascript) -->
      <!-- write your markdown syntax hear -->
    </div>

    <div v-marked class="javascript">
      <!-- write your markdown syntax javascript code hear, split the HTML tag string or it will be treated like a HTML tag by browser -->
    </div>

vue

effect

effect

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago