scratch/html-include.md
HTML Include
Polypoint should come with a web component, to easily run polypoint hoisted canvas layers. This may be utilised though a range of includsion methods
Theatre load:
<polypoint-canvas
theatre="my/theatre-file.js"
width="800" height="600"></polypoint-canvas>
With inline code:
<polypoint-canvas>
context.beginPath();
context.arc(50, 50, 40, 0, 2 * Math.PI);
context.stroke();
</polypoint-canvas>
With script tag:
<polypoint-canvas>
<script type="javascript">
context.beginPath();
context.arc(50, 50, 40, 0, 2 * Math.PI);
context.stroke();
</script>
</polypoint-canvas>
Info
keys: dict_keys(['exists', 'path', 'text', 'meta', 'rendered'])
path: scratch/html-include.md
exists: True
meta: dict_keys(['filepath_exists', 'path', 'filepath', 'markdown'])