-
Notifications
You must be signed in to change notification settings - Fork 0
mycoding/Ext-Core-for-NodeJS
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Author is mycoding Account page on Sencha forum http://www.sencha.com/forum/member.php?135053-Mycoding email:[email protected] icq:395712335 Skype:MycodingExtJS ExtCoreNodeJS - framework for NodeJS on base of Ext Core and some classes of ExtJS. It is in developing. At the moment it is possible to do Templating of pages and some basic tricks. Actually it is easy to see from source code what it is possible. I will try to do some samples. Samples with explanation are here (in Russian) http://javascript.ru/blog/mycoding/Ext-Core-dlya-NodeJS **Templating** var Ext = require('./extcorenodejs.js').Ext; Ext.init(this); var data = { name: 'Jack Slocum', kids: [{ name: 'Sara Grace', age:3 },{ name: 'Zachary', age:2 },{ name: 'John James', age:0 }] }; var tpl = new Ext.XTemplate( '<p>Name: {name}</p>', '<p>Kids: ', '<tpl for="kids">', '<tpl if="age > 1">', '<p>{name}</p>', '<p>Dad: {parent.name}</p>', '</tpl>', '</tpl></p>' ); var html = tpl.applyTemplate(data); console.log(html); **Email** // Test version. new Ext.Mail({ to: "[email protected]", from: "[email protected]", subject: "Knock knock...", body: "Who's there?", /*success:function(){ console.log('Success'); },*/ failure:function(err){ console.log('Error:'+err); } }).send();
About
ExtCoreNodeJS
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published