rSimulate / Cosmosium

:earth_americas: js game engine for space-based games
Other
23 stars 7 forks source link

'tiles' should be modular to allow easy UI customization #37

Open 7yl4r opened 10 years ago

7yl4r commented 10 years ago

I've been going back and forth on this a bit, but I think I have a good sense of how to structure the tpl-based page-maker engine. Here are the key aspects:

Put another way, consider the following template-within-template hierarchy, where lower-level tpl files are used to build higher-level tpl files:

  1. page-level tpl specifies template for building a full html page
  2. UI element / content tile tpls specify drag-and-drop parts of a page
  3. general element / tile tpls allow for easy creation of new modular page-parts

The code is partially there, but there is a bit more to do before it is done. Once it is, I suppose there should be a wiki page explaining this for future template-ers. That is how I think it should work, but I'd love to hear some more thoughts and opinions.