[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Savannah-hackers] savannah.gnu.org: submission of Velosurf
From: |
claude |
Subject: |
[Savannah-hackers] savannah.gnu.org: submission of Velosurf |
Date: |
Thu, 18 Apr 2002 13:58:24 -0400 |
A package was submitted to savannah.gnu.org.
This mail was sent to address@hidden, address@hidden
Claude Brisson <address@hidden> described the package as follows:
License: gpl
Other License:
Package: Velosurf
System name: velosurf
This package does NOT want to apply for inclusion in the GNU project
Velosurf is a - thin but powerfull - database abstraction layer tool for the
Jakarta Velocity template engine, written in Java.
It provides to writters of templates access to entities and attributes of their
database model and content.
Goals are :
- ease of use
- intuitive syntax
- performances
Standard usage for a web site make use of the VelosurfServlet and allows to
access a database from Velocity templates without writting a single line of
Java.
Sample template code :
----------------------------------------
## \"Out of the box\" usage
Workers :
#foreach ($worker in $db.worker)
Name : $worker.firstname $worker.lastname
position : $db.position.fetch([$worker.position_id]).name
boss : $db.worker.fetch([$worker.boss_id]).lastname
#end
## when defining foreign keys in the .def file as follow :
## worker.boss = worker(boss_id)
## worker.position = position(position_id)
## or directly in the template as follow :
#set ($db.worker.boss = \"worker(boss_id)\")
#set ($db.worker.position = \"position(position_id)\")
## the preceding example can be rewritten as :
Workers :
#foreach ($worker in $db.worker)
Name : $worker.firstname $worker.lastname
position : $worker.position.name
boss : $worker.boss.lastname
#end
----------------------------------------
It already exists and you can download the latest distribution at
http://aragorn.surfwizu.com/claude/velosurf-0.2.tgz
Thanx !
CloD
- [Savannah-hackers] savannah.gnu.org: submission of Velosurf,
claude <=
- Re: [Savannah-hackers] savannah.gnu.org: submission of Velosurf, Loic Dachary, 2002/04/19
- Re: [Savannah-hackers] savannah.gnu.org: submission of Velosurf, Claude Brisson, 2002/04/19
- [Savannah-hackers] Velosurf Java dependency, Loic Dachary, 2002/04/20
- [Savannah-hackers] Re: Velosurf Java dependency, Nic Ferrier, 2002/04/20
- Re: [Savannah-hackers] Re: Velosurf Java dependency, Mathieu Roy, 2002/04/20
- Re: [Savannah-hackers] Re: Velosurf Java dependency, Nic Ferrier, 2002/04/20
- Re: [Savannah-hackers] Re: Velosurf Java dependency, Loic Dachary, 2002/04/21
- Re: [Savannah-hackers] Re: Velosurf Java dependency, Nic Ferrier, 2002/04/21