expose state param into template