module.exports = {
    // Extend website resources and html
    website: {
        assets: "./book",
        js: [
            "anker.js"
        ],
        css: [
        ],
        html: {
            "html:start": function() {
                return "<!-- Start book "+this.options.title+" -->"
            },
            "html:end": function() {
                return "<!-- End of book "+this.options.title+" -->"
            },

            "head:start": "<!-- head:start -->",
            "head:end": "<!-- head:end -->",

            "body:start": "<!-- body:start -->",
            "body:end": "<!-- body:end -->"
        }
    },

    // Extend ebook resources and html
    website: {
        assets: "./book",
        js: [
            "test.js"
        ],
        css: [
            "test.css"
        ],
        html: {
            "html:start": function() {
                return "<!-- Start book "+this.options.title+" -->"
            },
            "html:end": function() {
                return "<!-- End of book "+this.options.title+" -->"
            },

            "head:start": "<!-- head:start -->",
            "head:end": "<!-- head:end -->",

            "body:start": "<!-- body:start -->",
            "body:end": "<!-- body:end -->"
        }
    },

    // Extend templating blocks
    blocks: {
        // Author will be able to write "{% myTag %}World{% endMyTag %}"
        myTag: {
            process: function(blk) {
                return "Hello "+blk.body;
            }
        }
    },

    // Extend templating filters
    filters: {
        // Author will be able to write "{{ 'test'|myFilter }}"
        myFilter: function(s) {
            return "Hello "+s;
        }
    },

    // Hook process during build
    hooks: {
        // For all the hooks, this represent the current generator

        // This is called before the book is generated
        "init": function() {
            console.log("init!");
        },

        // This is called after the book generation
        "finish": function() {
            console.log("finish!");
        }
    }
};

@@ -638,650 +638,8 @@
 %7D,%0A%0A
-    // Extend ebook resources and html%0A    website: %7B%0A        assets: %22./book%22,%0A        js: %5B%0A            %22test.js%22%0A        %5D,%0A        css: %5B%0A            %22test.css%22%0A        %5D,%0A        html: %7B%0A            %22html:start%22: function() %7B%0A                return %22%3C!-- Start book %22+this.options.title+%22 --%3E%22%0A            %7D,%0A            %22html:end%22: function() %7B%0A                return %22%3C!-- End of book %22+this.options.title+%22 --%3E%22%0A            %7D,%0A%0A            %22head:start%22: %22%3C!-- head:start --%3E%22,%0A            %22head:end%22: %22%3C!-- head:end --%3E%22,%0A%0A            %22body:start%22: %22%3C!-- body:start --%3E%22,%0A            %22body:end%22: %22%3C!-- body:end --%3E%22%0A        %7D%0A    %7D,%0A%0A
     
@@ -760,16 +760,19 @@
 %0A       
+ //
  myTag: 
@@ -781,20 +781,23 @@
         
+//
     
+ 
 process:
@@ -812,32 +812,35 @@
 n(blk) %7B%0A       
+ //
          return 
@@ -861,24 +861,27 @@
 ody;%0A       
+ //
      %7D%0A     
@@ -874,32 +874,35 @@
 //     %7D%0A       
+ //
  %7D%0A    %7D,%0A%0A    /
@@ -1015,16 +1015,19 @@
 %0A       
+ //
  myFilte
@@ -1043,36 +1043,39 @@
 on(s) %7B%0A        
+//
     
+ 
 return %22Hello %22+
@@ -1076,32 +1076,35 @@
 llo %22+s;%0A       
+ //
  %7D%0A    %7D,%0A%0A    /
@@ -1300,42 +1300,8 @@
 ) %7B%0A
-            console.log(%22init!%22);%0A
     
@@ -1395,44 +1395,8 @@
 ) %7B%0A
-            console.log(%22finish!%22);%0A
     

comment out hooks