You need to get basics of Templating first.