Refactor to use HTML + templating #11

Closed
rgrp opened this Issue Jan 5, 2012 · 0 comments

2 participants

@rgrp
Open Knowledge International member

ATM html is built up with mixture of strings and code. This is very difficult to read and maintain. suggest we switch to using blocks of HTML with variables of form {{varname}} and then doing:

template.replace(/{{...}}/g, variable)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment