Fixed variable access deprecation warnings in ERB templates.

Access variables in ERB templates as @variable instead of variable to shut off warnings like:
```
Warning: Variable access via 'root' is deprecated. Use '@root' instead. template[inline]:1
   (at (erb):1:in `block in result')
```