Creating a new lesson - BuggleInc/PLM GitHub Wiki
You can create a brand new lesson in a few steps:
- Create a new package in lessons. The following uses mylesson as lesson name, but you should be more original if possible. Then, add a Main class in the package mylesson:
public class Main extends Lesson {
@Override
protected void loadExercises() {
/* the list of exercises will come here when defined */
}
}
-
Describe your lesson in the file lessons/mylesson/Main.html. This should be done in english if you want to get it merged back into the PLM project, but there is no obligation to merge it. You are perfectly free to develop lessons for your own usage if you don't feel like contributing back to the project, in which cas you are naturally free to use the language of your choice.
-
List your Main.html file in the po4a.conf configuration file so that it becomes translatable, and use po4a to translate it to other languages (see also PLM-Hacker-documentation).
-
You now have an empty lesson. You probably want to populate your lesson by Adding a new exercise.
-
Afterward, you may want to [ship your lesson](Shipping a modified lesson) to the pupils.