Unexpected attribute n: v latte šabloně

MW
Člen | 615
+
0
-

Zdravím Vás a prosím o radu.

Mám z nejmenovaného školení šablonu, obsahující:

<div class="well">
    <!-- Mark the comment list as a snippet so that we can redraw it independently -->
    <!--
        Add the child snippet mask using n:dynamic, add the 'nittro-snippet-container' class
        and tell Nittro how to create new dynamic snippets using 'data-dynamic-element'
    -->
    <ul n:snippet="list" n:dynamic="comment-\d+" data-dynamic-element="li.list-group-item" class="list-group nittro-snippet-container">
        {foreach $comments as $comment}
            <li class="list-group-item" n:snippet="comment-$comment->id">
                <!--
                    Replace the data-transition="false" attribute with data-dynamic-remove; set the value to
                    the comment's ID selector using the "snippetId" macro
                -->

                <p class="list-group-item-text"><strong>{$comment->author_name}:</strong> {$comment->content}</p>
                <p class="list-group-item-text text-muted"><small>{$comment->date_add|date:'j. m. Y H:i'}</small></p>
            </li>
        {/foreach}
    </ul>

    <!-- Updated flashes rendering -->
    <div n:flashes></div>

    <!-- Disable default transition when adding a comment -->
    <form n:name="commentForm" class="form-horizontal" data-transition="false">
        <!--
            Render form errors - this is like the flash messages macro, except for form
            and input errors - the same HTML will be generated on the server side using
            this macro as the HTML that Nittro would generate during client-side validation
        -->
        <ul n:formErrors class="form-errors"></ul>

        <div class="form-group">
            <label n:name="author_name" class="control-label col-sm-4" />
            <div class="col-sm-8">
                <input n:name="author_name" class="form-control" />
                <ul n:errors="author_name" class="form-errors"></ul>
            </div>
        </div>
        <div class="form-group">
            <label n:name="author_email" class="control-label col-sm-4" />
            <div class="col-sm-8">
                <input n:name="author_email" class="form-control" />
                <ul n:errors="author_email" class="form-errors"></ul>
            </div>
        </div>
        <div class="form-group">
            <label n:name="content" class="control-label col-sm-4" />
            <div class="col-sm-8">
                <textarea n:name="content" class="form-control" />
                <ul n:errors="content" class="form-errors"></ul>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-4 col-sm-8">
                <button n:name="add" class="btn btn-primary" />
            </div>
        </div>
    </form>
</div>

A dostávám při vykreslování chyby u všech těchto n: atributu:

n:dynamic
n:flashes
n:formErrors
n:errors
a dalších…

Unexpected attribute n:xxxxxx

Co může být prosím špatně? Něco mi uniká…

Díky moc!

Marek Bartoš
Nette Blogger | 1177
+
+1
-

Všechny jsou z knihovny nittro. A tu autor oficiálně pohřbil už před lety a nevyvíjí se.

MW
Člen | 615
+
0
-

Děkuji za reakci, takže nemám asi někde nittro správně načtené?

Šaman
Člen | 2635
+
+2
-

Tohle není věc načtené JS knihovny, ale rozšíření latte.
Nejspíš potřebuješ tohle: https://github.com/…ette-bridges

MW
Člen | 615
+
0
-

Šaman napsal(a):

Tohle není věc načtené JS knihovny, ale rozšíření latte.
Nejspíš potřebuješ tohle: https://github.com/…ette-bridges

Vypadá to tak, moc díky!

Marek Bartoš
Nette Blogger | 1177
+
+2
-

Vážně s nittrem nezačínej, pokud už ho v projektu nemáš. Není nikdo, kdo by ho vyvíjel.

MW
Člen | 615
+
0
-

Nj, teď koukam, že je i toto staršího data.. Používá se teď něco místo Nittra? Dlouho jsem nic v Nette nedělal, tak nevím, co je in a dělám nový projekt, tam bych byl vděčný za radu.

Moc díky