Monsieur Zartosht

Monsieur Zartosht

Who am I?

A very simple blog that belongs to a very simple full-stack web developer about his daily life and struggles through coding. here you will find many things such as music, movies, and code (lots of codes!)

What I write about

Recent Posts

Node js

When getting a document out from mongo with mongoose client, the output is not of plain object type and it means you cannot easily use it inside template engines. I came across this problem and thought that couldn't use the output inside handlebars "each" helper.

Sometimes when using handlebars you may need to have extra functionality over your data in the template. Such as having an intelligent select element, checkbox, global variable and etc. Let's create some of this functions here.