===== Template snippets ===== Here we show how visualiser tools and extensions can be developed with template snippets. ==== What is a template snippet? ==== A template snippet is an HTML DOM node stored in the database that can be dynamically inserted into a scene. === Template snippets === The advantage of template snippets lies in the possibility of dynamically designing the VR/MR scene and configuring different elements to match each other. Examples: - Bedside table Modern White: https://vrdoro.com/editor/~/admin/template-snippets/edit/13 - Plant-on-Cylinder: https://vrdoro.com/editor/~/admin/template-snippets/edit/44 - House with Base: https://vrdoro.com/editor/~/admin/template-snippets/edit/46 This enables the composition of model elements. These snippets have the type ''TEMPLATESNIPPETS''. === Tools === Tools are template snippets which, in addition to the composition of elements, change their behaviour via JavaScript code. These template snippets usually use the A-frame component neo-code. The neo-code component is an A-frame component that is configured by a template snippet. Tools have a typical structure, as this example shows: https://vrdoro.com/editor/~/admin/template-snippets/edit/188. These snippets have the type ''TOOL''.