render variables in html attrs

- verify variables attributes get rendered
- remove usage of re.MULTILINE in select regex. used only in conjunction with ^
  or $ special regex characters