nodulator
Version:
Complete NodeJS Framework for Restfull APIs
73 lines (72 loc) • 3.93 kB
JSON
{
"_args": [
[
{
"name": "nodulator-view",
"raw": "nodulator-view@file:./src/Modules/Nodulator-View",
"rawSpec": "file:./src/Modules/Nodulator-View",
"scope": null,
"spec": "/home/fgreiner/prog/js/Nodulator/src/Modules/Nodulator-View",
"type": "directory"
},
"/home/fgreiner/prog/js/Nodulator"
]
],
"_from": "src/Modules/Nodulator-View",
"_id": "nodulator-view@0.0.1",
"_inCache": true,
"_installable": true,
"_location": "/nodulator-view",
"_phantomChildren": {},
"_requested": {
"name": "nodulator-view",
"raw": "nodulator-view@file:./src/Modules/Nodulator-View",
"rawSpec": "file:./src/Modules/Nodulator-View",
"scope": null,
"spec": "/home/fgreiner/prog/js/Nodulator/src/Modules/Nodulator-View",
"type": "directory"
},
"_requiredBy": [
"/"
],
"_resolved": "file:src/Modules/Nodulator-View",
"_shasum": "881336966f98b360c8acf025b9312a002caa3d82",
"_shrinkwrap": null,
"_spec": "nodulator-view@file:./src/Modules/Nodulator-View",
"_where": "/home/fgreiner/prog/js/Nodulator",
"author": {
"email": "greine_f@epitech.eu",
"name": "Champii"
},
"bugs": {
"url": "https://github.com/Champii/Nodulator/issues"
},
"dependencies": {
"async": "^1.5.0",
"browserify": "^12.0.1",
"browserify-livescript": "^0.2.3",
"coffeeify": "^2.0.1",
"q": "^1.4.1"
},
"description": "View system for Nodulator",
"devDependencies": {
"mocha": "~2.0.1"
},
"directories": {
"test": "test"
},
"keywords": [
"Nodulator",
"View"
],
"license": "GPLv2",
"main": "index.ls",
"name": "nodulator-view",
"optionalDependencies": {},
"readme": "Nodulator-View\n================\n\nView system for [Nodulator](https://github.com/Champii/Nodulator)\n\n## Exemples\n\n#### Simple incrementing button\n```livescript\nApp = N.View {foo: 0}, ->\n button do\n click: ~> @foo++\n @foo\n\nN.Render App\n```\n\n#### Node manipulation\n\nGet and change dom dynamicaly\n\n```livescript\nApp = N.View {name: 'ChangeMe'}, ->\n div do\n i = input type: \\text\n button do\n click: ~> @name = i.GetElement!value\n @name\n\nN.Render App\n```\n\n\n#### Compenent based and reusability\n\n```livescript\nFooView = N.View -> \"Foo: #{@bar}\"\nBarView = N.View -> \"Bar: #{@foo}\"\n\nFoo = N \\foo FooView\nBar = N \\bar BarView\n\nComponent = N.View (Resource, obj) ->\n div do\n button do\n click: -> Resource.Create obj\n \\Create Resource._type\n Resource.List!\n\nApp = N.View ->\n div do\n Component Foo, bar: 42\n Component Bar, foo: 42\n\nN.Render App\n\n```\n\n#### TodoList (client only)\n\n```livescript\nItem = N.View (item) ->\n li do\n \"#{item.value}: #{item.done}\"\n button do\n click: -> item.done = !item.done\n \\Change\n\nList = N.View {list: []}, ->\n div do\n i = input type: \\text\n button do\n click: ~> @list = @list ++ [{value: i.GetElement!value, done: false}]\n \\Add\n ul do\n @list |> map Item\n\nN.Render List\n```\n\n#### TodoList (client/server)\n\n```livescript\nTaskView = N.View ->\n div do\n \"#{@id}: #{@value} #{if @done => '(Done)' else ''}\"\n button do\n click: ~> @Set done: !@done\n if @done => \\Undone else \\Dones\n button do\n click: ~> @Delete!\n \\Delete\n\nTask = N \\Task TaskView, schema: \\strict\n ..Field \\value \\string\n ..Field \\done \\bool .Default false\n\nApp = N.View ->\n div do\n i = input type: \\text\n button do\n click: ~>\n if (elem = i.GetElement!).value.length\n Task\n .Create elem{value}\n .Then -> elem.value = ''\n \\Create\n Task.List!\n\nN.Render App\n```\n",
"readmeFilename": "README.md",
"scripts": {
"test": "mocha --compilers coffee:coffee-script/register test"
},
"version": "0.0.1"
}