aboutsummaryrefslogtreecommitdiff
path: root/node_modules/vue/src/platforms/web/compiler/directives/html.js
blob: 58569d8e47ea6d355dab60c011754d0f08cae46e (plain)
1
2
3
4
5
6
7
8
9
/* @flow */

import { addProp } from 'compiler/helpers'

export default function html (el: ASTElement, dir: ASTDirective) {
  if (dir.value) {
    addProp(el, 'innerHTML', `_s(${dir.value})`)
  }
}