惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
IT之家
IT之家
Recent Announcements
Recent Announcements
B
Blog
D
Docker
V
V2EX
GbyAI
GbyAI
L
LangChain Blog
博客园 - Franky
U
Unit 42
T
The Blog of Author Tim Ferriss
A
About on SuperTechFans
博客园 - 【当耐特】
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Vercel News
Vercel News
博客园_首页
D
DataBreaches.Net
人人都是产品经理
人人都是产品经理
Y
Y Combinator Blog
量子位
Blog — PlanetScale
Blog — PlanetScale
罗磊的独立博客

Secret Weblog

Becoming More Xee: A Modern XPath and XSLT Engine in Rust Looking for new challenges! Repeat Yourself, A Bit The Curious Case of Quentell The Humble For Loop in Rust The Humble For Loop in JavaScript Don Question Best Practices I Was a 1980s Teenage Programmer Part 5: Achieving Assembly I Was a 1980s Teenage Programmer Part 4: The Call of Assembly The Tooling Shift I Was a 1980s Teenage Programmer Part 3: MSX-2 JavaScript: when you need two ways to do it! Empowering Programming Languages Bloat and Retrofuturism Refreshing my Blog Again Random Rust Impressions Apilar: An Alife System I Was a 1980s Teenage Programmer Part 2: Olivetti M24 I Was a 1980s Teenage Programmer: the Alphatronic SolidJS fits my brain Is premature optimization the root of all evil? Framework Patterns: JavaScript edition Roll Your Own Frameworks Framework Patterns Secret Weblog Highlights Refactoring to Multiple Exit Points mstform: a form library for mobx-state-tree Seven Years: A Very Personal History of the Web
Obviel 1.0b
Martijn Faassen · 2012-05-31 · via Secret Weblog

It's been quiet around Obviel, the client-side web framework that I've been working on. That isn't because there wasn't any activity. The opposite is the case: I've just released Obviel 1.0b with a ton of new goodies. And when I mean a ton I do mean a ton:

  • a whole new template language called Obviel Template that supports sub-views & i18n
  • gettext-style i18n in JavaScript
  • and the most out there new thing: an actual client-side routing library called Traject

For more details, here's the changelog.

Why would you want a client-side web framework like Obviel? More and more web development is happening on the client side, in JavaScript. End users get a more dynamic user interface. Developers get to enjoy a cleaner separation between UI and backend, and various scalability benefits as the burden of rendering the UI has moved to the client. A rich client-side UI isn't something to use for all web sites, but it certainly is a nice thing for the web applications where you can!

jQuery is a very nice library to help build dynamic web UIs, but for larger projects your JavaScript easily grows out of control and becomes a tangled mess. With Obviel you can add structure to your jQuery application, and make each bit more easy to understand and more reusable.

You can get started with Obviel without learning a ton of new things beyond jQuery: learn about the new function .render() that Obviel adds to jQuery, and you're quite far along already. You'll find your client-side code becomes more clean and RESTful.

Obviel is there for you then you need more: templating, internationalization, forms, client-site routing, and more.

Obviel isn't the only client-side framework out there. I do think it offers some unique perspectives on how to do templating, i18n, model/view separation and form generation. Unique for the client-side that is: I've been porting over patterns from advanced server web frameworks that I'm familiar with to JavaScript and the browser to see what happens. And what happens feels good to me. I hope you'll check it out and let me know what you think!