updating the page generator and base view to work with razor helper functions

@NTaylorMullen 
`WriteTo(writer, value.ToString(CultureInfo.InvariantCulture));`