Email or username:

Password:

Forgot your password?
Top-level
Gregory

There's also a corresponding Idea plugin, and while it's highlighting the syntax nicely (at last!), I've yet to figure out how exactly it knows which variables do exist and which do not.

No comments
Gregory

So I went to see how they do escaping, because my localization is implemented such that it's possible to have HTML tags in strings themselves but format arguments must be escaped.

Wrapping an escaped string into a special object is a MUCH cleaner solution than the indescribable monstrosity JTwig does. This feels like it was written by people who actually knew what they were doing — which is an unfortunately rare occasion in the modern world of software development.

github.com/PebbleTemplates/peb

So I went to see how they do escaping, because my localization is implemented such that it's possible to have HTML tags in strings themselves but format arguments must be escaped.

Wrapping an escaped string into a special object is a MUCH cleaner solution than the indescribable monstrosity JTwig does. This feels like it was written by people who actually knew what they were doing — which is an unfortunately rare occasion in the modern world of software development.

Go Up