When creating a new Plinth module, I usually copy a lot of code from other modules, and then modify it as needed. It would be nice to have a script that you can run like ./create-module <name> that will create all the boilerplate that is common for modules.
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
@jvalleroy is there any boiler plate for apps till now?
I think writing a script is easier if we do have a boiler plate.
just generating a copy of the boilerplate and placing the name of module whereever required may do the trick.
You could also pick a simple module like quassel or mumble. Those are just basic service modules, without much customization, so they should be close to a boiler plate.
@jvalleroy As the boilerplate is almost complete now I would like to discuss the design for solving this issue.
Initially I will be using this boilerplate templates as a blue print.In a python script , I will be asking the user for the module_name,module_title,module_description.
secondly the tags that need to be replaced in the blueprints will be named as {{module_name}},{{module_title}},{{module_description}}
now here there are two approaches to follow:-
above blueprint files will be copied to required new module folder, and then are parsed to replace the tags with original module name(using a python script).
or the blueprints are parsed in the python ,respective tags which are to be replaced are replaced and then the final output will be copied to the required folder.
which approach would be a better one?or any other approach you would like to suggest?