// Dpeendencies
var EngineParserGen = require("../lib");

// Initialize the parser-generator
var epg = new EngineParserGen("test-app");

// Rename layout->another_layout
epg.renameInstance("layout", "another_layout", (err, toBeSaved, toBeDeleted) => {
    if (err) { return console.log(err); }

    // Save the changes on the disk
    epg.save({

        // delete these ones
        delete: toBeDeleted
        // delete: "layout"
        // delete: { layout: true, router: true }

        // Override these ones
      , save: toBeSaved
    }, function (err) {
        console.log(err || "Saved");
    });
});

@@ -1,15 +1,14 @@
 // Dpe
-e
 ndencies
@@ -346,25 +346,25 @@
 %0A        // 
-d
+D
 elete these 
@@ -399,86 +399,8 @@
 eted
-%0A        // delete: %22layout%22%0A        // delete: %7B layout: true, router: true %7D
 %0A%0A  

Clean up