Showing the changes to assets (2 of 8 files). Show all
Unified · Split
| @@ -0,0 +1,14 @@ | ||
| 1 | +#= require views/pages/base | |
| 2 | + | |
| 3 | +class app.views.VuePage extends app.views.BasePage | |
| 4 | + afterRender: -> | |
| 5 | + for el in @findAllByTag('pre') | |
| 6 | + lang = if el.classList.contains('html') or el.textContent[0] is '<' | |
| 7 | + 'markup' | |
| 8 | + else if el.classList.contains('css') | |
| 9 | + 'css' | |
| 10 | + else | |
| 11 | + 'javascript' | |
| 12 | + el.setAttribute('class', '') | |
| 13 | + @highlightCode el, lang | |
| 14 | + return | |
| @@ -25,7 +25,7 @@ · 24 unmodified lines | ||
| 25 | 25 | ._mocha, |
| 26 | 26 | ._mongoose, |
| 27 | 27 | ._sinon, |
| 28 | +._vue, | |
| 28 | 29 | ._webpack { |
| 29 | 30 | @extend %simple; |
| 30 | 31 | } |
| 31 | − | |