What are placeholders?
Simply put you can configure an application to load in a container and if it isn't
registered yet a placeholder is displayed.
Why is this useful?
It acts like a live checklist of what needs to be done. Setup your site with all the
navigation and applications you are going to use
and then write each application and register its entry_point. Every time you finish an
application you will nearly instantly see it
running on your site. When there are no more placeholders left you know you have completed
your site.
How do I use them?
If you use the containers that reside in moksha.api.widgets.containers you get it for
free. Note this only works for the MokshaApp configuration wrappers (and soon the
MokshaWidget wrapper). If the container can't find the app you specified in the
config it will simply replace it with a placeholder which displays the entry point that
could not be found. Implement that entry point, register it
and restart your server and the placeholder will disappear leaving you with your running
app.
I've been laying out the fedoracommunity skeleton so you can check it out there.
--
John (J5) Palmieri
Software Engineer
Red Hat, Inc.
Show replies by date