# Tags

# jshrink

Using jshrink, you can minimize your JavaScript code, reducing the size of the source code and speeding up loading times.

# Usage

In the TPL file where JavaScript code is used, wrap your code between {% jshrink %} and {% endjshrink %} tags. The code between these tags will automatically be minified using jshrink.

# Example

Code: Output:
{% jshrink %}
    <script>
        function myFunction() {
            console.log('Hello');
            // JavaScript kód
        }
    </script>
{% endjshrink %}
<script>function myFunction(){console.log('Hello');}</script>

# schema

The {% schema %} tag is a special tag used exclusively for Dynamic modules in templates.

For more information, refer to the Dynamic modules documentation.

© 2011 - 2025 Shoprenter Kft.