|Classes of Alexander Selifonov
Code generator for modules, plugins and landing pages
Majority of web applications, CMS systems, frameworks use "modular" (or plugin) architecture. It allows easy developing of new functionality and adding it to the system independently from other modules. Quite often modules, or plugins, have a similar structure, so it would be great to have a kind of "template" with places for inserting specific "variable" values, and then create "initial stub" for a new module with these values inside. After that developer can modify generated files, adding needed specific (function implementation, CSS styling etc.)
Another often task is creating a collection of files for a "single page" - for example, adaptive landing page, based on predefined design.
For example, you want to create a landing page based on some royalty free pages available in internet, but you don't want each time to search places where to insert your titles, text blocks, css color codes etc.
In that case you just modify source page files, by adding special macros (like
waPluginator renders an html "designer" form for choosing template, entering user values and executing the "module creation process".
waPluginator uses CodePreprocessor to parse template files, but it allows attaching any additional text/source code processors (compilers), like "scss to css", "less to css" etc. You can attach compiler if it is implemented as PHP class with callable "compiling" method.
See using details in wiki