RadicalMilitantLibrary / www

If you want to set up your own library, you need to get in touch with me (you will need a database).
http://atvkojvn5r744cxstejhtnxatpu6q7haxfgx7z2ku5rrom5p4fnsldad.onion/
17 stars 8 forks source link

Add some form of templating #32

Open PaulPetring opened 7 years ago

PaulPetring commented 7 years ago

For multi language support, clearer code structure and performance add some kind of MVC Structure, suggestions are Smarty Templating or something even simpler.

related to #24

Discuss :)

s72785 commented 7 years ago

Smarty does not do the job. For templating PHP only is fine. If you prefer Smarty syntax over PHP is another question. I lack to see the advantage though. If there was a templating system that was implementation independent, that would count well. I could imagine some XML/JSON/YAML e.g. for language support.

Code structure (as in put things in objects and all that modern stuff a self-tought dev does not know much about) definitely would help and it would enable MVC.

The theoretical result would be easily extensible but more complex code, also interesting OCP to get rid of all those switches.

There are texts (where translation also would be of use) on the site that are not part of the UI itself; which should maybe reside in the DB or files instead. E.g. announcement of the manual, About.