function printSidebar(){
    templates.searchSidebar = Handlebars.compile(`{{#each this}} 
    <li class="sidebar-list">
        <a href=index.html#{{workid}}>{{titleshort}}</a>
        <hr>
    </li>
    {{/each}}`)
    let temp = templates.searchSidebar(works)

    let div = document.getElementById("sidebar-list")
    div.innerHTML = temp
}
/**Print a sidebar with work titles, on click moves the user to the appropriate work */
Print a sidebar with work titles, on click moves the user to the appropriate work
Print a sidebar with work titles on click moves the user to the appropriate work
function printSidebar(){
    templates.searchSidebar = Handlebars.compile(`{{#each this}} 
    <li class="sidebar-list">
        <a href=index.html#{{workid}}>{{titleshort}}</a>
        <hr>
    </li>
    {{/each}}`)
    let temp = templates.searchSidebar(works)
    let div = document.getElementById("sidebar-list")
    div.innerHTML = temp
}
function printSidebar ( ) { templates . searchSidebar = Handlebars . compile ( ` ` ) let temp = templates . searchSidebar ( works ) let div = document . getElementById ( "sidebar-list" ) div . innerHTML = temp }
Print a sidebar with work titles, on click moves the user to the appropriate work
Print a sidebar with work titles on click moves the user to the appropriate work