compiing jade template and sending as attribute