1

This is a piece of code found in a webview directory in an Android project.

    <script id="table" type="text/template">
      <table>
        {% _.each(data.rows, function(row) { %}
            <tr>
                {% if (row.length == 1) { %}
                    <td style="text-align: center" colspan="{{data.maxRowLength}}">
                        {{row[0]}}
                    </td>
                {% } else { %}
                    {% _.each(row, function(cell) { %}
                        <td>{{ cell }}</td>
                    {% }) %}
                {% } %}
            </tr>
        {% }) %}
    </table>
    <br>
   </script>
karmstr7
  • 187
  • 5
  • That doesn't look like javascript. It might be a js templating enginer (given ` – freedomn-m Jun 25 '21 at 18:18
  • Hey everyone, I think [this](https://stackoverflow.com/questions/4912586/explanation-of-script-type-text-template-script) solves it. Someone commented with the link but then deleted their comment. – karmstr7 Jun 26 '21 at 13:09

2 Answers2

0

looks like Django templating(python framework) engine but this is a guess https://docs.djangoproject.com/en/3.2/ref/templates/builtins/

Shaked Tayeb
  • 112
  • 9
0

This seems to be similar to Jinja Templating - https://jinja.palletsprojects.com/en/3.0.x/