Biweekly Report — II : The coding period Begins……
So the Community Bonding period is ended Officially. Now, I have started to work on the Code.
Week 3 & 4
- Replace hard-coded strings in Handlebars templates
My first task was to Replace hard-coded strings in handlebars. Basically I need to be at that point where handlebars can be used for all wikimedia sister portals. So for this Handlebars to be generic. So I replace all hardcoded strings in Handlebar_Variables so they can change string value for different portals accordingly.
I can give you one example


Like above example I converted all the hardcode strings to variable.
2. Move Handlebars templates into common folder
So, Now after replacing hardcoded string my task was to change the directory of handlebars so that can used by all other portals.During this process I also need to identify the handlebars that are portal agnostic and portal specific,
Then,I created a folder structure ‘src/common/templates’ and place the all Handlebars templates that will be used across the various portals.The templates should be portal agnostic, meaning they should not contain any content that is specific to a certain portal. To keep the build working, I modified the Gulp.js configuration with a new path for the templates.
For more insights you can go through task T284533.