     # compile template
     item = config.CATALOG.item or DEFAULT_ITEM
     multi = config.CATALOG.multi or DEFAULT_MULTI
-    config.ITEM = {}
+    config.ITEMS = {}
     if not multi
-        config.ITEM.pageIndex = 1
-        config.ITEM.metasArray = metasArray[0...item]
+        config.ITEMS.pageIndex = 1
+        config.ITEMS.metasArray = metasArray[0...item]
         return tmplFunc(config)
     else
         for idx in [0...metasArray.length] by item
-            config.ITEM.pageIndex = idx + 1
-            config.ITEM.metasArray = metasArray[idx...item]
+            config.ITEMS.pageIndex = idx + 1
+            config.ITEMS.metasArray = metasArray[idx...item]
             htmlText = tmplFunc(config)
             tmplsArray.push(htmlText)
         return tmplsArray

            color.yellow(error.stack)

    # build .sg file
    sgConfigArray = []
    for sgInfo in sgInfosArray
        try
            sgConfig = readTmplConfig(virFs, sgInfo)
            sgConfigArray.push(sgConfig)
            tmplBuffer = buildTmplSg(tmplsMap, sgConfig)
            rlsFs.write(sgInfo.name, tmplBuffer)
        catch error
            color.yellow("Build ERR : #{virInfo.name}")
            color.yellow(error.stack)

    return
    # build .xsg file
    for xsgInfo in xsgInfosArray
        try
            xsgConfig = readTmplConfig(virFs, sgInfo)
            result = buildTmplXsg(tmplsMap, xsgConfig)
            if "string" == typeof result
                tmplBuffer = result
                rls.write(virInfo.name, tmplBuffer)
            else
                for tmplBuffer, idx in result
                    name = "#{virInfo.name}_#{idx+1}"
                    rls.write(name, tmplBuffer)
        catch error
            color.yellow("Build ERR : #{virInfo.name}")
            color.yellow(error.stack)

    tmplFunc = tmplMap[config.TEMPLATE]
    if "function" != typeof tmplFunc
        throw new Error("Template not found : #{config.TEMPLATE}")
    # filter metasArray
    metasArray = metasArray.filter (meta) ->
        if not meta.type
            return true
