@**
 * Copyright (c) 2013-2020 Kaj Magnus Lindberg
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *@

@(safeStaticJsonSt: String, reactStoreSafeJsonString: String)

@import org.owasp.encoder.Encode

<script id="theVolatileJson" type="application/json">
@* Here we place quickly changing data and user specific data. Note that
this tag is placed before #thePageJson below, so if e.g. a comment contains
the below magic string then that won't matter because we replace only the very first
occurrence of the magic string with volatile + user specific data. [8BKAZ2G] *@
@Html(controllers.ViewPageController.HtmlEncodedVolatileJsonMagicStringQuoted)
</script>

<script id="thePageJson" type="application/json">
@* Play Framework escapes too much (it escapes '"'), so use @Html and OWASP instead. *@
@Html(Encode.forHtmlContent(reactStoreSafeJsonString))
</script>

<script id="theStaticJson" type="application/json">
@Html(Encode.forHtmlContent(safeStaticJsonSt))
</script>
