include_view | R Documentation |
Store the reusing 'HTML' segments in the
views
folder. This function should be used in the
'index.html'
template
include_view(file, ..., .env = parent.frame(), .root_path = template_root())
file |
files in the template |
... |
ignored |
.env , .root_path |
internally used |
rendered 'HTML' segments
## Not run:
# in your 'index.html' file
<html>
<header>
{{ shidashi::include_view("header.html") }}
</header>
<body>
</body>
<!-- Before closing html tag -->
{{ shidashi::include_view("footer.html") }}
</html>
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.