Reference
Security Model
Your theme runs on Tjjar's servers, in the same infrastructure that serves other merchants' stores, next to shoppers' payment flows. This page states what that means — what the platform guarantees, what it asks of you, and where the boundary sits.
What the engine guarantees today
Output is always escaped
Every value printed with {{ }} is HTML-escaped. |safe, {% autoescape %},
{% filter %}, and the truncatechars_html, truncatewords_html, urlize and
urlizetrunc filters are refused when a theme is loaded, so there is no theme-level opt-out.
A product named <img onerror=...> renders as visible text.
Script that got in anyway does not run
Every page is served with a Content-Security-Policy that allows script only from the store's
own origin — no inline script, no third-party hosts — and no framing. It is the backstop
behind escaping: if a value ever did reach the page as markup, the browser would still refuse
to execute it. Ship your JavaScript as files in assets/.
Templates cannot reach anything
No filesystem, no network, no database. {% include %} and {% extends %} resolve only
within your own theme's files, held in memory; a path with .., a leading /, or a
backslash is refused when the theme is loaded. The context contains plain data only —
strings, numbers, booleans, lists and maps — so there is no object in scope with a method to
call, and nothing that can be called.
Renders are bounded — two limits hard, one not
| Limit | What happens when a render exceeds it |
|---|---|
| Output size | The render is stopped the moment it passes the cap |
| Concurrency | Further renders are refused with the platform's busy page |
| Time | The shopper gets the platform's busy page; the render itself runs to its end |
The time limit is the soft one, and it is stated plainly because it matters: no template engine offers a way to interrupt a loop mid-way. A render that runs too long is answered without, but keeps its concurrency slot until it finishes — so a theme that loops without end exhausts its capacity and is refused, rather than quietly consuming the server. Stopping such a theme for good is the job of review. Exact numbers are in Limits & Quotas.
Failures never show the internals
A render that fails, times out or finds no store answers with the platform's own page — never a stack trace, never a partial page, never a message from inside the engine. An address that names no store, and a store that is suspended, get byte-for-byte the same response.
What is coming
- Immutable, revocable versions. Once themes can be uploaded, a published version's files will never change, and a version found to be harmful can be quarantined: every store on it falls back to the default theme on its next request, with no merchant action.
- A
richfilter, the one sanctioned path to markup: a server-side allowlist sanitiser for merchant rich text.
What we ask of you
Escape is not the same as safe in every context
Automatic escaping is HTML-aware but not attribute-context-aware. Printing a value
directly into an href is still dangerous, because javascript:alert(1) contains no
characters escaping would change. Our own test suite pins this behaviour so it cannot change
under you silently:
{# Dangerous: nothing here is escaped away #}
<a href="{{ link }}">...</a>
{# Safe #}
<a href="{{ link|url }}">...</a>
The url filter passes http: and https: URLs with a host, mailto:, tel:, and paths
on the store that start with a single /. Anything else — javascript:, data:, a
protocol-relative //other-site, a value with a tab or newline hidden in its scheme —
becomes #. Use it on every value you did not type yourself that goes into href or src.
Do not build markup from strings
Concatenating a value into a tag defeats escaping, because the escaping is applied to the value rather than to the structure you built around it. Write the markup; interpolate the value.
Third-party scripts are your responsibility
If your theme loads a script from a CDN, you have given that CDN the ability to run code on
every store using your theme. Prefer bundling into assets/. If you must load remotely, use
Subresource Integrity, and expect review to ask about it.
Never ask a shopper for card details
Payment is handled by the platform's checkout. A theme that renders a card form — even one that posts to a legitimate processor — will be rejected. There is no exception to this.
Review and publishing
| Source | Who can install it | Review |
|---|---|---|
builtin | every store | ships with the platform |
marketplace | any store that installs it | reviewed by Tjjar before publishing |
custom | one store, on a Professional plan | not reviewed by us; the merchant accepts the risk |
A marketplace theme is reviewed before it can be published, and again on each version. A custom theme belongs to a single merchant's own developer, so its blast radius is one store — which is a materially different bargain, and the merchant is told so.
Reporting a vulnerability
If you find a way to escape these boundaries — to read another store's data, to execute script that should have been escaped, to reach the filesystem — report it privately rather than demonstrating it on a live store. We will work with you on disclosure.