Commit ef51574a authored by John Chilton's avatar John Chilton
Browse files

Fix for Python style interpolation in navigation code.

parent 69b2bce5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ import NAVIGATION_DATA from "./navigation.yml";

function interpolate(template, properties) {
    let parsed = template;
    parsed = parsed.replace("$$", "$"); // Handle escaping $ in Python style...
    Object.keys(properties).forEach((key) => {
        const value = properties[key];
        parsed = parsed.replace("${" + key + "}", value);