Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Ext.js on node.js?

Tags:

node.js

extjs

I'm using YUI at the moment on both browser and node.js side.

Is there a way to use Ext.js on node.js?

like image 837
ajsie Avatar asked Sep 16 '26 05:09

ajsie


1 Answers

http://www.alsonkemp.com/geekery/extjs-4-models-node-js/

Here's an example implementation, pulling in some data modelling classes. I haven't used either of these libraries, but a cursory glance at this and it seems the main idea is this:

fs = require('fs'); // filesystem module in Node.js

function injectJS(f) {
  eval(fs.readFileSync(f, encoding="ascii"));
}

injectJS('/path/to/my/includes/includeFile.js');

// now use the library as normal