debian/0000755000000000000000000000000011772165212007172 5ustar debian/compat0000644000000000000000000000000211710765241010370 0ustar 7 debian/changelog0000644000000000000000000000304511772165212011046 0ustar ruby-erubis (2.7.0-2) unstable; urgency=low * Bump build dependency on gem2deb to >= 0.3.0~ * Skip broken test suite. Its results were being ignored anyway. -- Antonio Terceiro Mon, 25 Jun 2012 17:54:03 -0300 ruby-erubis (2.7.0-1) unstable; urgency=low * New upstream release (Closes: #657127) * Switch to the gem2deb helper and follow new policy (Closes: #657141) - Rename source package to ruby-erubis - Rename main binary package to ruby-erubis and make the other one transitional - Put under the Debian Ruby Extras team maintenance - Use ruby dh sequence * Switch to dpkg-source 3.0 (quilt) format * debian/copyright: Use DEP5 specification * debian/watch: Use pkg-ruby-extras helper -- Laurent Bigonville Thu, 26 Jan 2012 15:15:58 +0100 erubis (2.6.2-3.1) unstable; urgency=low * Non-maintainer upload * Drop 1.9 package, add 1.9.1 package. Closes: #569846, #577876 -- Tollef Fog Heen Wed, 09 Jun 2010 21:19:04 +0200 erubis (2.6.2-3) unstable; urgency=low * Bump standards version to 3.8.1 * Update debhelper compatibility to 7 * Correct GPL links to GPL-2 -- Bryan McLellan Wed, 08 Apr 2009 11:11:15 -0700 erubis (2.6.2-2) unstable; urgency=low * Add additional notices to copyright file -- Bryan McLellan Wed, 18 Mar 2009 14:36:38 -0700 erubis (2.6.2-1) unstable; urgency=low * Initial release (Closes: #509254) -- Bryan McLellan Sat, 20 Dec 2008 01:43:52 -0800 debian/copyright0000644000000000000000000001067411710765241011135 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: erubis Source: http://rubyforge.org/projects/erubis/ Files: * Copyright: 2006-2008 kuwata-lab.com License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: contrib/erubis-run.rb Copyright: 2007 Andrew R Jackson 2001 Shugo Maeda License: BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WAreqANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WAreqANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTEreqUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: setup.rb Copyright: 2000-2004 Minero Aoki License: LGPL-2.1 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU Lesser General Public License version 2.1 can be found in the file `/usr/share/common-licenses/LGPL-2.1'. Files: debian/* Copyright: 2012 Laurent Bigonville 2009 Bryan McLellan License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/control0000644000000000000000000000567611772147752010624 0ustar Source: ruby-erubis Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Bryan McLellan , Laurent Bigonville Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~) Standards-Version: 3.9.2 Vcs-Git: git://git.debian.org/git/pkg-ruby-extras/ruby-erubis.git Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-erubis.git;a=summary Homepage: http://www.kuwata-lab.com/erubis/ XS-Ruby-Versions: all Package: ruby-erubis Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Replaces: erubis (<< 2.7.0-1~), liberubis-ruby (<< 2.7.0-1~), liberubis-ruby1.8 (<< 2.7.0-1~), liberubis-ruby1.9.1 (<< 2.7.0-1~), erubis-doc (<< 2.7.0-1~) Breaks: erubis (<< 2.7.0-1~), liberubis-ruby (<< 2.7.0-1~), liberubis-ruby1.8 (<< 2.7.0-1~), liberubis-ruby1.9.1 (<< 2.7.0-1~), erubis-doc (<< 2.7.0-1~) Provides: erubis, liberubis-ruby, liberubis-ruby1.8, liberubis-ruby1.9.1, erubis-doc Description: fast and extensible eRuby implementation which supports multi-language Erubis is a very fast eRuby implementation that features: * Multi-language support (Ruby/PHP/C/Java/Scheme/Perl/Javascript) * Auto escaping support * Auto trimming spaces around '<% %>' * Embedded pattern changeable (default '<% %>') * Enable to handle Processing Instructions (PI) as embedded pattern * Context object available and easy to combine eRuby template with YAML file * Print statement available * Easy to extend and customize in subclass * Ruby on Rails support # Transitional packages Package: erubis Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, ruby-erubis Description: Transitional package for ruby-erubis This is a transitional package to ease upgrades to the ruby-erubis package. It can safely be removed. Package: liberubis-ruby Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, ruby-erubis Description: Transitional package for ruby-erubis This is a transitional package to ease upgrades to the ruby-erubis package. It can safely be removed. Package: liberubis-ruby1.8 Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, ruby-erubis Description: Transitional package for ruby-erubis This is a transitional package to ease upgrades to the ruby-erubis package. It can safely be removed. Package: liberubis-ruby1.9.1 Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, ruby-erubis Description: Transitional package for ruby-erubis This is a transitional package to ease upgrades to the ruby-erubis package. It can safely be removed. Package: erubis-doc Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, ruby-erubis Description: Transitional package for ruby-erubis This is a transitional package to ease upgrades to the ruby-erubis package. It can safely be removed. debian/rules0000755000000000000000000000012211772165161010250 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 %: dh $@ --buildsystem=ruby --with ruby debian/source/0000755000000000000000000000000011710765241010472 5ustar debian/source/format0000644000000000000000000000001411710765241011700 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000014111710765241010217 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/erubis .*/erubis-(.*).tar.gz debian/ruby-erubis.examples0000644000000000000000000000001311710765241013174 0ustar examples/* debian/ruby-erubis.manpages0000644000000000000000000000002011710765241013147 0ustar debian/erubis.1 debian/ruby-erubis.docs0000644000000000000000000000003111710765241012306 0ustar README.txt doc/ doc-api/ debian/erubis.10000644000000000000000000000642111710765241010550 0ustar .TH ERUBIS "1" "January 2009" "erubis 2.6.2" "User Commands" .SH NAME erubis \- eRuby style template engine for multiple languages .SH SYNOPSIS .B erubis [..\fIoptions\fR..] [\fIfile \fR...] .SH DESCRIPTION Embedded templating engine for multiple languages. Erubis will take a template file as input and output code to convey that data in the language specified. The following output languages are supported: .IP * Ruby * PHP * C * Java * Scheme * Perl * JavaScript .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR help .TP \fB\-v\fR version .TP \fB\-x\fR show converted code .TP \fB\-X\fR show converted code, only ruby code and no text part .TP \fB\-N\fR numbering: add line numbers (for '\-x/\-X') .TP \fB\-U\fR unique: compress empty lines to a line (for '\-x/\-X') .TP \fB\-C\fR compact: remove empty lines (for '\-x/\-X') .TP \fB\-b\fR body only: no preamble nor postamble (for '\-x/\-X') .TP \fB\-z\fR syntax checking .TP \fB\-e\fR escape (equal to '\-\-E Escape') .TP \fB\-p\fR pattern embedded pattern (default '<% %>') .TP \fB\-l\fR lang convert but no execute (ruby/php/c/java/scheme/perl/js) .TP \fB\-E\fR e1,e2,... enhancer names (Escape, PercentLine, BiPattern, ...) .TP \fB\-I\fR path library include path .TP \fB\-K\fR kanji kanji code (euc/sjis/utf8) (default none) .TP \fB\-c\fR context context data string (yaml inline style or ruby code) .TP \fB\-f\fR datafile context data file ('*.yaml', '*.yml', or '*.rb') .TP \fB\-T\fR don't expand tab characters in YAML file .TP \fB\-S\fR convert mapping key from string to symbol in YAML file .TP \fB\-B\fR invoke 'result(binding)' instead of 'evaluate(context)' .TP \fB\-\-pi\fR=\fIname\fR parse '' instead of '<% ... %>' .SS "supported properties:" .IP * (common) .TP \fB\-\-escapefunc\fR=\fInil\fR : escape function name .TP \fB\-\-pattern=\fR"<% %>" : embed pattern .TP \fB\-\-trim\fR=\fItrue\fR : trim spaces around <% ... %> .TP \fB\-\-preamble\fR=\fInil\fR : preamble (no preamble when false) .TP \fB\-\-postamble\fR=\fInil\fR : postamble (no postamble when false) .TP \fB\-\-escape\fR=\fInil\fR : escape expression or not in default .IP * (basic) * (pi) .TP \fB\-\-pi=\fR"rb" : PI (Processing Instrunctions) name .TP \fB\-\-embchar=\fR"@" : char for embedded expression pattern('@{...}@') .IP * ruby * php * c .TP \fB\-\-indent=\fR"" : indent spaces (ex. ' ') .TP \fB\-\-out=\fR"stdout" : output file pointer name .IP * java .TP \fB\-\-indent=\fR"" : indent spaces (ex. ' ') .TP \fB\-\-buf=\fR"_buf" : output buffer name .HP \fB\-\-bufclass=\fR"StringBuffer" : output buffer class (ex. 'StringBuilder') .IP * scheme .TP \fB\-\-func=\fR"_add" : function name (ex. 'display') .IP * perl .TP \fB\-\-func=\fR"print" : function name .IP * javascript .TP \fB\-\-docwrite\fR=\fItrue\fR : use 'document.write()' when true .SH EXAMPLES Run 'erubis \-l php example.ephp' to convert the embedded document to php code. \fBexample.ephp:\fR

Hello <%= $user %>!

<% $i = 0; %> <% foreach ($list as $item) { %> <% $i++; %> <% } %>
<%= $i %> <%== $item %>
.SH SEE ALSO http://rubyforge.org/projects/erubis/