Widget Jones Library

Widget Jones Library (WJL) is a lightweight, flexible, template driven widget build system.
Download

Widget Jones Library Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • EU Edge LLC
  • Publisher web site:
  • https://oss.euedge.com/wiki/WjlMainPage

Widget Jones Library Tags


Widget Jones Library Description

Widget Jones Library (WJL) is a lightweight, flexible, template driven widget build system. Widget Jones Library (WJL) is a lightweight, flexible, template driven widget build system. It is intended to simplify creating portable widgets. Write your code once, build it with Widget Jones Library, then run it on several widget platforms like:· Apple Dashboard · Windows Vista Sidebar · iGoogle · add your own...How do I start my first project?Make sure to download and extract the WJL package. The templates and the build environment are contained in the 'wjl' folder inside the archive.A WJL project has the same directory structure as the 'wjl' directory, and is in essence an overlay on 'wjl'. You only need to create the files you wish to customize for your project. All other files will be taken from the 'wjl' supplied defaults.Let's start with a basic example. Consider you already have WJL in a local folder. . `-- wjlCreate your HelloWorld project beside WJL by first creating an empty folder 'helloworld'. This directory could be anywhere you find convenient. . |-- wjl `-- helloworldNow copy content.html and config.yml from WJL to their place as shown above. . |-- wjl `-- helloworld |-- common | `-- content.html `-- config.ymlNow start coding and fill in the config file. Open content.html and write the following code: < center >Hello Widget World< /center >Edit config.yml with a text editor, and fill it in. The fields are pretty self-explanatory: width: 320height: 120name: HelloWidgetWorldtitle: Hello Widget Worlddescription: "This is my first widget project!"author: John Doeauthor_email: john@doe.comwebsite: http://doe.comwebsite_text: "The Does"namespace: com.doe.john.hellowidgetworldIn a console, navigate to your project and issue the following command-line command: < wjl path >/build (Linux / Mac) < wjl path >build.bat (Windows)WJL builds the all widgets in 'dist' folder within your project directory: . `-- helloworld `-- dist |-- dashboard - Apple Dashboard widget |-- igoogle - iGoogle widget `-- sidebar - Windows Vista Sidebar widgetCongratulations, you completed your first WJL widget project. Now you can try out your widgets in their run-time environment. The simplest way to upload the generated dist/igoogle/main.xml (iGoogle) to http://google.com/ig and give it a try.How can I override templates?It's easier than you may think. Your project structure is a 'shadow' of WJL. If you want to override a WJL template just copy it to the same place in your project folder where it can be found in WJL.What is the WJL JavaScript library good for?WJL JavaScript library is automatically included to widget content and provides the following services: · fetch XML and text contents from remote site · simple preferences managementRequirements:· Ruby· rake· yaml· builder (Markup builder)Install them with 'gem install ' command via command line interface:· gem install rake· gem install yaml· gem install builder


Widget Jones Library Related Software