task .name { attributes.task.name } .progress(style="width: {progress(attributes.task)}%;") script. function progress(task) { return (task.progress / task.total); }