add get_from_url common function
support if/else clause in html template