This should be interpolated: Username: @username // V will NOT do interpolation inside // V will interpolate the values here: This should be interpolated too, because it is outside the script tag: Year: @year myint: @{benchmark_plot_data.myint(1)} mydate: @{benchmark_plot_data.mydate()}