private void lOutputText_DataBinding( object sender, EventArgs e )
{
Literal lOutputText = sender as Literal;
GridViewRow gridViewRow = lOutputText.NamingContainer as GridViewRow;
if ( gridViewRow.DataItem != null )
{
Dictionary<string, object> mergeValues = this.ToGridItemsDictionary( gridViewRow, gridViewRow.DataItem );
lOutputText.Text = this.LiquidField.LiquidTemplate.ResolveMergeFields( mergeValues );
// Resolve any dynamic url references
string appRoot = ( (RockPage)lOutputText.Page ).ResolveRockUrl( "~/" );
string themeRoot = ( (RockPage)lOutputText.Page ).ResolveRockUrl( "~~/" );
lOutputText.Text = lOutputText.Text.Replace( "~~/", themeRoot ).Replace( "~/", appRoot );
}
}