↓ Ir para o conteúdo principal

← todas as notas

📎 Webclip

Getting started with Kranium.js

Kranium.js is presented as a Titanium Mobile framework built from web development techniques. The post says it speeds up development and styling, helps with prototyping and production, and aims to make app code more modular and readable.

Reading notes
#

  • It simplifies UI component creation and promotes a clean modular pattern for mobile apps.
  • It makes deep object structures easier to read and write with a compact syntax.
  • Custom components live in a kui folder and can be lazily autoloaded when needed.
  • The author recommends a strong namespace pattern and gives ARLoginStatusLabel as an example.
  • It ships with a CSS port for Titanium Mobile.
  • kranium init and kranium watch can start an auto-compiler service for Sass, LESS, and CoffeeScript, with optional live in-app updating through sockets.
  • It uses a modified Sizzle engine and emulates the DOM in a natural way.
  • Pseudo selector support is still missing, and not all Sizzle filter methods are implemented yet.
  • It includes Jasmine BDD integration and a localhost console.
  • Installation requires NodeJS, the kranium command line tool, and the demo application.