Text Content preview field should render template tags


(Erlend Sogge Heggen) #1

Dunno if “template tag” is the correct term, but here’s what I’m talking about:

%{site_name} and so forth should render as how it would actually display to the user (in my case jMonkeyEngine Hub) in the preview. It is a preview after all.

I got paranoid when I saw the template tag still there; I immediately signed up a dummy user to make sure it was displaying properly.


On a related note there’s also a slightly unnecessary discrepancy here between %{site_name} and title, the setting field that site_name points to. Wouldn’t it be natural to call them by the same name? At the very least rename site_name to site_title?

Furthermore, all setting fields that have a corresponding template tag might as well add a little mention of it, e.g.

title - The name of this site, as used in the title tag and in %{site_name}

I could do pull requests for these if I get the OK.