diff --git a/doc/impl-thoughts/DESIGN.md b/doc/impl-thoughts/DESIGN.md new file mode 100644 index 00000000..5fc345a2 --- /dev/null +++ b/doc/impl-thoughts/DESIGN.md @@ -0,0 +1,3 @@ +use mock view models or even a mock session to render different states of the app in a static html document, where we can somehow easily tweak the css (just browser tools, or do something in the page?) how to persist css after changes? + +Also dialogs, forms, ... could be shown on this page. diff --git a/src/ui/web/general/TemplateView.js b/src/ui/web/general/TemplateView.js index 7bd4ef05..6fd0d7d2 100644 --- a/src/ui/web/general/TemplateView.js +++ b/src/ui/web/general/TemplateView.js @@ -19,8 +19,7 @@ function objHasFns(obj) { - one way binding of text values (child fn value) - refs to get dom nodes - className binding returning object with className => enabled map - missing: - - create views + - add subviews inside the template */ export class TemplateView { constructor(value, render = undefined) { @@ -288,3 +287,10 @@ for (const tag of TAG_NAMES) { } // TODO: should we an instance of something else than the view itself into the render method? That way you can't call template functions outside of the render method. +// methods that should be on the Template: +// el & all the tag names +// view +// if +// createTemplate +// +// all the binding stuff goes on this class, we just set the bindings on the members of the view.