Re: [NEW] textproc/lua-lustache

2016-04-20 Thread Frederic Cambus
On Sat, Mar 26, 2016 at 08:16:19PM +0100, Adam Wolk wrote:
> > 
> > lustache is an implementation of the mustache template system in Lua.
> > 
> Looks great & works me - will gladly import if someone can drop a
> second OK.
> 
> OK awolk@

Anyone willing to test this and give a second OK?

Here is a small Lua snippet to test the package :

local lustache = require "lustache"

data = {
system = "OpenBSD",
version = "5.9"
}

print(lustache:render("Hello World from {{system}} {{version}}!", data))



Re: [NEW] textproc/lua-lustache

2016-03-26 Thread Adam Wolk
On Tue, 22 Mar 2016 16:28:44 +0100
Frederic Cambus  wrote:

> Hi ports@,
> 
> Here is a new port, I use it locally when developing on a Lua codebase
> and it's also a dependency for an upcoming port.
> 
> From DESCR :
> 
> lustache is an implementation of the mustache template system in Lua.
> 
> Mustache is a logic-less template syntax. It can be used for HTML,
> config files, source code - anything. It works by expanding tags in a
> template using values provided in a hash or object.
> 
> We call it "logic-less" because there are no if statements, else
> clauses, or for loops. Instead there are only tags. Some tags are
> replaced with a value, some nothing, and others a series of values.
> 

Looks great & works me - will gladly import if someone can drop a
second OK.

OK awolk@



Re: [NEW] textproc/lua-lustache

2016-03-24 Thread Florian Stinglmayr
On Tue, Mar 22, 2016 at 04:28:44PM +0100, Frederic Cambus wrote:
> Hi ports@,
>
> Here is a new port, I use it locally when developing on a Lua codebase
> and it's also a dependency for an upcoming port.
>
> From DESCR :
>
> lustache is an implementation of the mustache template system in Lua.
>
> Mustache is a logic-less template syntax. It can be used for HTML, config
> files, source code - anything. It works by expanding tags in a template
> using values provided in a hash or object.
>
> We call it "logic-less" because there are no if statements, else clauses,
> or for loops. Instead there are only tags. Some tags are replaced with a
> value, some nothing, and others a series of values.
>

Works nicely on all lua flavours, portcheck doesn't complain and now I
have a template engine for my own project. Cheers!

+1 from me. The more lua ports, the merrier.

Regards,
Florian