skozlov / netzke-core
- Source
- Commits
- Network (1)
- Issues (1)
- Downloads (4)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.autotest | Wed Apr 29 15:28:57 -0700 2009 | |
| |
.gitignore | Sat Oct 10 12:20:27 -0700 2009 | |
| |
CHANGELOG.rdoc | Wed Jan 20 08:58:10 -0800 2010 | |
| |
LICENSE | Mon Oct 12 14:51:04 -0700 2009 | |
| |
Manifest | Sat Sep 05 18:48:09 -0700 2009 | |
| |
README.rdoc | Fri Feb 05 20:13:52 -0800 2010 | |
| |
Rakefile | Wed Jan 20 08:56:56 -0800 2010 | |
| |
TODO | Tue Jul 14 15:53:58 -0700 2009 | |
| |
autotest/ | Wed Apr 29 15:26:19 -0700 2009 | |
| |
generators/ | Fri Jul 10 08:10:34 -0700 2009 | |
| |
init.rb | Fri Jan 02 13:01:20 -0800 2009 | |
| |
install.rb | Thu Dec 11 21:15:00 -0800 2008 | |
| |
javascripts/ | Sun Jan 10 10:24:51 -0800 2010 | |
| |
lib/ | Fri Dec 11 08:34:16 -0800 2009 | |
| |
stylesheets/ | Sun Mar 15 13:33:25 -0700 2009 | |
| |
tasks/ | Sat Dec 27 14:50:46 -0800 2008 | |
| |
test/ | Mon Nov 09 18:46:58 -0800 2009 | |
| |
uninstall.rb | Thu Dec 11 21:15:00 -0800 2008 |
netzke-core
Create Ext JS + Rails reusable components (widgets) with minimum effort.
This is the bare bones of the Netzke framework. Use it to build your own widgets from scratch. For pre-built widgets (like panels, grids, forms, trees, applications), see the netzke-basepack (github.com/skozlov/netzke-basepack) project.
The idea behind the Netzke framework is that it allows you write reusable client/server code. Create a widget, and then embed it (or load it dynamically) into your Ext-based applications or HTML pages. For more info, see the links below.
Instalation
For the latest ("edge") stuff, install as plugin (recommended!):
./script/plugin install git://github.com/skozlov/netzke-core.git
Otherwise, install as gem. The gem is hosted on gemcutter. If you haven’t yet enabled gemcutter, run the following:
sudo gem install gemcutter && gem tumble
Install the gem
sudo gem install netzke-core
Generate the migrations for Netzke persistent storage:
./script/generate netzke_core
Run the migrations.
Netzke assumes that your ExtJS library is in public/extjs (which may be a symbolic link).
Usage
Here’s how to embed a Netzke widget into your Rails view.
- In your layout, within the "head" tag, use the
netzke_init helper to include all the necessary JavaScript and
styles.
<%= netzke_init %>
- In config/routes.rb declare the Netzke routes:
map.netzke
- In your view use the netzke helper wherever you want to insert a
widget.
<%= netzke :grid_panel, :data_class_name => "User", :columns => [:id, :name, :created_at] %>
(here we use the GridPanel widget from the netzke-basepack project)
More info
Introduction to Netzke framework and wiki: github.com/skozlov/netzke
Twitter: twitter.com/skozlov
Tutorials: blog.writelesscode.com
Live-demo: netzke-demo.writelesscode.com
The netzke-basepack project (pre-built full-featured widgets): github.com/skozlov/netzke-basepack
Copyright © 2009 Sergei Kozlov, released under the MIT license
