parsing and crunching inline variables (think Shopify's Liquid but without templating)