Changing the note view template for real-time action

As we did earlier, in order to make these events visible to the user, we must not only add client code to the template, views/noteview.hbs; we need a couple of small changes to the template:

<div class="container-fluid">    <div class="row"><div class="col-xs-12">        {{#if note}}<h3 id="notetitle">{{ note.title }}</h3>{{/if}}        {{#if note}}<div id="notebody">{{ note.body }}</div>{{/if}}        <p>Key: {{ notekey }}</p>    </div></div>    {{#if user }}    {{#if notekey }}        <div class="row"><div class="col-xs-12">        <div class="btn-group">            <a class="btn btn-outline-dark"                 href="/notes/destroy?key={{notekey}}"                 role="button">Delete</a>            <a cl e template, views/noteview.hb  ass="btn btn-outline-dark"  href="/notes/edit?key={{notekey}}" ...

Get Node.js Web Development - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.