Skip to content

Load JSON and listen to changes? #179

@frankandrobot

Description

@frankandrobot

I create a PUG that loads a JSON file. The problem is that relaxedjs does not update when I make changes to this file.

Here's the PUG that loads a JSON file:

-
  const fs = require('fs');
  const data = JSON.parse(fs.readFileSync("./my.json"));
 
section
   p  #{data.foo} 

when I make changes to my.json, the console reports No process defined for file /my.json. and does NOT rebuild the document.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions