File tree Expand file tree Collapse file tree 2 files changed +20
-5
lines changed
markdown/reference/starter-templates Expand file tree Collapse file tree 2 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import QuickLinks from '~/components/quick-links'
4
4
import Reload from '~/components/reload'
5
5
import Section from '~/components/section'
6
6
import { mergeData } from 'vue-functional-data-merge'
7
+ import { bootstrapVersion , vueVersion } from '~/content'
7
8
8
9
// @vue /component
9
10
export default {
@@ -62,11 +63,25 @@ export default {
62
63
const $quickLinks = h ( QuickLinks )
63
64
64
65
// Body section
65
- const $bodySection = h ( Section , {
66
- props : { play : true } ,
67
- domProps : { innerHTML : body || '' }
66
+ const $bodySectionContent = h ( {
67
+ delimiters : [ '[[' , ']]' ] , // change the delimiters to avoid conflicts with code examples
68
+ data ( ) {
69
+ return {
70
+ bootstrapVersion,
71
+ vueVersion
72
+ }
73
+ } ,
74
+ template : `<div>${ body } </div>`
68
75
} )
69
76
77
+ const $bodySection = h (
78
+ Section ,
79
+ {
80
+ props : { play : true }
81
+ } ,
82
+ [ $bodySectionContent ]
83
+ )
84
+
70
85
return h ( Main , mergeData ( data , { props : { tag } } ) , [
71
86
$leadSection ,
72
87
$error ,
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ tags to load the required JavaScript and CSS in your page.
26
26
<link
27
27
type =" text/css"
28
28
rel =" stylesheet"
29
- href =" https://unpkg.com/bootstrap/dist/css/bootstrap.min.css"
29
+ href =" https://unpkg.com/bootstrap@[[ bootstrapVersion ]] /dist/css/bootstrap.min.css"
30
30
/>
31
31
<link
32
32
type =" text/css"
@@ -38,7 +38,7 @@ tags to load the required JavaScript and CSS in your page.
38
38
<script src =" https://polyfill.io/v3/polyfill.min.js?features=es2015%2CIntersectionObserver" ></script >
39
39
40
40
<!-- Required scripts -->
41
- <script src =" https://unpkg.com/vue@latest /dist/vue.js" ></script >
41
+ <script src =" https://unpkg.com/vue@[[ vueVersion ]] /dist/vue.js" ></script >
42
42
<script src =" https://unpkg.com/bootstrap-vue@latest/dist/bootstrap-vue.js" ></script >
43
43
</head >
44
44
<body >
You can’t perform that action at this time.
0 commit comments