Webpack-loader to use coffeescript in vue templates as attributes or interpolations.
npm install coffee-in-vue-templates-loader
sh
yarn add --dev coffee-in-vue-templates-loader
`
Example usage
$3
`vue
div(:class="active: i is 2" @click="fn item, something: yes") {{ $t 'buttons.ok' }}
`
$3
`vue
{{ $t 'buttons.ok' }}
`
$3
`vue
{{ $t('buttons.ok') }}
`
Webpack configuration
$3
For example to use with pug, put the following in nuxt.config.coffee:
`coffee
[...]
build:
extend: (config, ctx) ->
config.module.rules.push
test: /\.pug$/
use: ['coffee-in-vue-templates-loader', 'pug-plain-loader']
``