@Mutugi, 

Please check out the example.html file.

Assume you are writing an client side app in javascript and you are getting data using ajax. You would probably write loops to render data on the browser. With this script you can create a HTML template to define how you want the content displayed and simply write it out with one line of code 

$(CSS3_SELECTOR).leanPrinter(data);

On Tue, Mar 6, 2012 at 2:17 PM, Timothy Mutugi <timothymutugi@gmail.com> wrote:
Congratulations David...

...if possible, in plain simple words, please tell me what the script
is supposed to do...you never know, it might be the solution to some
of my problems:-)



On 3/6/12, David Njuguna <dnjuguna@gmail.com> wrote:
> Just do it! then refine it later.
>
> On Tue, Mar 6, 2012 at 10:54 AM, gisho <gichuhie@gmail.com> wrote:
>
>> same case here, i've been saying i'll release some code but i still think
>> some parts are dirty and un optimized since i did it as a proof of concept
>> kinda.
>>
>> On Mon, Mar 5, 2012 at 9:43 PM, joe mwirigi <joemwirigi@gmail.com> wrote:
>>
>>> I was looking for the 'like' link on the list. Nways Kudos, you've gone
>>> ahead of many!
>>>
>>>
>>> *_______________________________________________________________
>>> We must Keep on,
>>>    *
>>>
>>>
>>>
>>>
>>> On Mon, Mar 5, 2012 at 9:38 PM, Bernard Owuor <b_owuor@yahoo.com> wrote:
>>>
>>>> Good Stuff!
>>>>
>>>> --- On *Mon, 3/5/12, David Njuguna <dnjuguna@gmail.com>* wrote:
>>>>
>>>>
>>>> From: David Njuguna <dnjuguna@gmail.com>
>>>> Subject: [Skunkworks] Creating FOSS
>>>> To: "Skunkworks Mailing List" <skunkworks@lists.my.co.ke>
>>>> Date: Monday, March 5, 2012, 8:49 AM
>>>>
>>>>
>>>> For several years now I have been promising myself that I would release
>>>> open source code.
>>>>
>>>> The truth is I never really did release anything. My excuse was always
>>>> that it is not yet good enough. After several years of coding I now know
>>>> that code will never be good enough to its creator. There is always that
>>>> thing you did that you now want to do in a cooler way.
>>>>
>>>> So today I took some baby steps and release a small lean and clean
>>>> jQuery plugin that takes a JS array and renders it according to a HTML
>>>> based template.
>>>>
>>>> Here it is https://github.com/dnjuguna/leanprinter This really is a
>>>> small piece of code which I hope represents a first step in a journey of
>>>> many miles.
>>>>
>>>>
>>>> David Njuguna
>>>> *********************
>>>> Software Engineer
>>>> iSys Software
>>>>
>>>>
>>>> -----Inline Attachment Follows-----
>>>>
>>>>
>>>> _______________________________________________
>>>> Skunkworks mailing list
>>>> Skunkworks@lists.my.co.ke<http://mc/compose?to=Skunkworks@lists.my.co.ke>
>>>> ------------
>>>> List info, subscribe/unsubscribe
>>>> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
>>>> ------------
>>>>
>>>> Skunkworks Rules
>>>> http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
>>>> ------------
>>>> Other services @ http://my.co.ke
>>>>
>>>>
>>>> _______________________________________________
>>>> Skunkworks mailing list
>>>> Skunkworks@lists.my.co.ke
>>>> ------------
>>>> List info, subscribe/unsubscribe
>>>> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
>>>> ------------
>>>>
>>>> Skunkworks Rules
>>>> http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
>>>> ------------
>>>> Other services @ http://my.co.ke
>>>>
>>>
>>>
>>> _______________________________________________
>>> Skunkworks mailing list
>>> Skunkworks@lists.my.co.ke
>>> ------------
>>> List info, subscribe/unsubscribe
>>> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
>>> ------------
>>>
>>> Skunkworks Rules
>>> http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
>>> ------------
>>> Other services @ http://my.co.ke
>>>
>>
>>
>> _______________________________________________
>> Skunkworks mailing list
>> Skunkworks@lists.my.co.ke
>> ------------
>> List info, subscribe/unsubscribe
>> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
>> ------------
>>
>> Skunkworks Rules
>> http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
>> ------------
>> Other services @ http://my.co.ke
>>
>
_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke