changed the loading function by a custom html element
This commit is contained in:
18
test_template_slots/test.html
Normal file
18
test_template_slots/test.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<template id="template1">
|
||||
<h1><slot name="heading">default</slot></h1>
|
||||
<slot name="tel"></slot>
|
||||
<p><slot name="paragraph">default</slot></p>
|
||||
<span class="insert_html" data-template="template2" slot="second_paragraph">paragraph 3</span>
|
||||
|
||||
<style>
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
font-family: monospace;
|
||||
color: darkorange;
|
||||
}
|
||||
p {
|
||||
border-left: 3px solid darkorange;
|
||||
padding-left: 1em;
|
||||
}
|
||||
</style>
|
||||
</template>
|
||||
Reference in New Issue
Block a user