Biweekly Report — II : The coding period Begins……

Bhaarat Kumar Khatri
2 min readJun 26, 2021

--

So the Community Bonding period is ended Officially. Now, I have started to work on the Code.

Week 3 & 4

  1. 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

Before
After

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.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response