Skip to content

znck/inline-template-highlighter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Highlight template in JS

// ...
const App = {
  components: { BlogPost },
  setup() {
    return {
      posts: Vue.ref([
        {
          id: 1,
          title: 'Example 1',
        }
      ]),
    }
  },
  template: `
    <div id="blog-posts-events-demo">
      <div :style="{ fontSize: postFontSize + 'em' }">
        <blog-post
          v-for="post in posts"
          v-bind:key="post.id"
          v-bind:title="title"
        ></blog-post>
      </div>
    </div>
  `,
}

Releases

No releases published

Packages

No packages published