Node.js 的 MVC 框架,total.js 1.9.1 發布

jopen 9年前發布 | 5K 次閱讀 total.js

total.js 是個 web 應用框架,使用 JavaScript,HTML,CSS 和 Node.js(MVC) web 應用框架來構建 web 網站和 web 應用。

Node.js 的 MVC 框架,total.js 1.9.1 發布

total.js 1.9.1 發布,此版本更新內容如下:

新特性

  • added: new sitemap system

    </li>

  • added: a default schema validator is F.onValidation()

    </li>

  • added: ErrorBuilder.setContentType() --> default application/json

    </li>

  • added: View engine supports else if

    </li>

  • added: U.parseBoolean(val, [def])

    </li>

  • added: F.backup(filename, path, [callback], [filter]) --> backup some path to one file

    </li>

  • added: F.restore(filename, target, [callback], [filter]) --> restore backup file (but not evaluating)

    </li>

  • added: MailMessage supports custom headers message.headers = { key: 'value' }

    </li>

  • added: @{notranslate} --> disables view translation

    </li>

  • added: F.mode('debug') or F.mode('release') --> changes a mode of the framework

    </li>

  • added: EACHSCHEMA([group], prepare(group, name, schema))

    </li> </ul>

    更新

    • updated: MailMessage.bcc(email, [clear]) --> added clear

      </li>

    • updated: MailMessage.cc(email, [clear]) --> added clear

      </li>

    • updated: MailMessage.reply(email, [clear]) --> added clear

      </li> </ul>

      Bug 修復

      • fixed: uploading files

        </li>

      • fixed: prevention for mail double callback calling (by Andrea Sessa)

        </li>

      • fixed: worker messaging

        </li>

      • fixed: problem with schema parser (by Andrea Sessa)

        </li>

      • fixed: F.load() --> "versions" is configurable

        </li>

      • fixed: "raw" receiving of data

        </li>

      • fixed: U.request(), the problem with default method

        </li>

      • fixed: F.exists() - problem with URL query string

        </li>

      • fixed: framework startup path

        </li>

      • fixed: Date.format()

        </li>

      • fixed: Assertion Testing

        </li> </ul>

        下載: