From 62fa07d506d6c6ed8e41c7f48c1a4c1edda6cd68 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 13 Jun 2018 11:07:34 -0700 Subject: [PATCH] README.md --- ext/afform/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ext/afform/README.md b/ext/afform/README.md index a895ff2eb2..98e94c8be9 100644 --- a/ext/afform/README.md +++ b/ext/afform/README.md @@ -216,6 +216,15 @@ Or if you're not sure data will actually be provided: Hello, {{routeParams.name ? routeParams.name : 'anonymous'}}. The moon is currently {{options.phaseOfMoon ? options.phaseOfMoon : 'on hiatus'}}. ``` +This design has some other neat consequences: + +* One `afform` may embed another `afform`. +* The parent `afform` can pass extra `options` to the child. +* If you decide that the framework provided by `org.civicrm.afform` is too stifling, you can fork off -- + remove the `afform/foobar` folder and create your own static module (`civix generate:angular-module --am=afform-foobar`, etc). + As long as your module supports the same interfaces (e.g. `
`), downstream users can still be supported. + *(FIXME: Could one fork off the JS while still allowing CRUD API to manipulate HTML?) + ## Known Issues * The code is currently written as a proof-of-concept. There are several `FIXME`/`TODO` declarations in the code -- 2.25.1