This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.
Templatizer really needs better documentation and deserves mention in developer guide #1428
Open
Description
Per title, the Templatizer documentation can hardly be found (I ended up just reading it from the file itself and only found out today it can be found in the API reference as well). Additionally even when you have the current documentation a lot of things are unclear:
_forwardParentPath
/_forwardParentProp
Still not sure when these functions are triggered despite having build two full elements withTemplatizer
, but I have never been able to trigger those._getRootDataHost
is absolutely crucial when you want to use functions inside those templates, but isn't mentioned in the standard documentation- The idea that
_instanceProps
is used for any properties that should be handled by the element itself isn't exactly clear either. - Explain how a single custom element can templatize multiple
<template>
's (still no idea). - The idea that you have to observe your 'input' data for changes and propagate those to your instances. (It's relatively obvious once you get the idea behind
Templatizer
, but far from obvious when you start.