Skip to content

node & co

A blog about node.js and other interesting stuff

  • About this blog

Month: December 2015

Posted on December 4, 2015 by kusti

How to include a file in a Jade template which might not be here

I had the problem that I had to include a Jade template from the filesystem which was optional: if it’s here, use it, otherwise just ignore it. Jade does neither allow conditional includes nor includes of non existing files. The solution for my problem was rendering the file in the code and passing the HTML to
Continue reading How to include a file in a Jade template which might not be here

Recent Posts

  • A node.js WiFi scanner module
  • New version of the ZigBee Site Survey Tool available
  • Starting up the ZigBee Survey Tool together with the System
  • Running the ZigBee Site Survey on a Raspberry Pi
  • Web-UI for ARK-Server

Recent Comments

    Archives

    • June 2016
    • May 2016
    • April 2016
    • March 2016
    • January 2016
    • December 2015
    • July 2015
    • June 2015
    • May 2015

    Categories

    • general
    • Jade
    • JavaScript
    • node.js
    • npm
    • qnap
    • Raspberry Pi
    • ZigBee

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

    © node & co 2023
    Theme: creativefocus by Mladjo.