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

jopen 9年前

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

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

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

  • added: View engine supports else if

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

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

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

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

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

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

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

更新

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

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

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

Bug 修复

  • fixed: uploading files

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

  • fixed: worker messaging

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

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

  • fixed: "raw" receiving of data

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

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

  • fixed: framework startup path

  • fixed: Date.format()

  • fixed: Assertion Testing

下载: