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

jopen 8年前發布 | 4K 次閱讀

total.js 1.9.5 發布,因為 NPM 問題跳過了 1.9.4 版本,此版本主要改進:

新特性

  • added: (IMPORTANT) new feature: THEMES

  • added:@{theme}--> return String

  • added:F.onThemedelegate

  • added:controller.theme(theme_name)--> select theme;

  • added:config['default-theme']

  • added:U.keywords(content, [forSearch], [alternative(true|false|soundex)], [max_count(200)], [max_length(20)], [min_length(2)]);

  • added:String.prototype.keywords([forSearch], [alternative(true|false|soundex)], [max_count(200)], [max_length(20)], [min_length(2)])

  • added:String.prototype.soundex()

  • added:F.wait(name, [enable])the server waits for pending task and it responds via 503 status code

  • added:U.parseQuery()andString.parseQuery()

  • added:U.join(path1, path2, path3)

  • added:U.getName(path)

  • added:F.on('error400')

  • added:F.on('error401')

  • added:F.on('error403')

  • added:F.on('error404')

  • added:F.on('error408')

  • added:F.on('error431')

更新

  • updated: (IMPORTANT) F.onAuthorization() was renamed to F.onAuthorize()

  • updated:Date.format()supportswandwwfor week number

  • updated:Date.add()supportsw,ww,week,weeks

  • updated: MailMessage supports display namemail.from('Name <vali@demail>');

  • updated: MailMessage supports display namemail.to('Name <vali@demail>');

  • updated: MailMessage supports display namemail.to(email, [name], [clear]);

  • updated: MailMessage supports display namemail.cc('Name <vali@demail>');

  • updated: MailMessage supports display namemail.cc(email, [name], [clear]);

  • updated: U.resolve(url, [callback]) -->callbackis optional

Bug 修復

  • fixed: HTTP cache for HTML 5 offline manifest files

  • fixed: async() error handling

  • fixed: NoSQL embedded paths

  • fixed: problem with empty SMTP options

  • fixed: ErrorBuilder default transformation to JSON

  • fixed: Error handling

  • fixed: SchemaBuilder request auto-validation

  • fixed: String.isJSON()

  • fixed: F.responsePipe() --> problem with transmitted headers

  • fixed: evaluating of @{helpers.helper_name()}

  • fixed: HTML minification of UTF8 characters

  • fixed: U.isEqual()

  • fixed: FrameworkImage.save() in Windows by LiaoTzukai

  • fixed: SchemaBuilder prefix by Du?an Dragula

改進

  • improved performance of the response

  • improved total performance

  • improved view engine performance

下載:

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

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

來自: http://www.oschina.net/news/69546/totaljs-1-9-5

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!