Introducing vibe.d!

Sönke Ludwig sludwig at outerproduct.org
Fri Apr 27 00:22:20 PDT 2012


Am 27.04.2012 09:08, schrieb Brad Anderson:
> On Friday, 27 April 2012 at 07:00:23 UTC, Sönke Ludwig wrote:
>>>
>>> I had to copy the included .lib files into bin in order to build the
>>> examples but so far, so good. This is awesome.
>>>
>>> Regards,
>>> Brad Anderson
>>
>> There is some really strange behavior of Windows batch files where it
>> sometimes fails with environment variables set with quotes and
>> sometimes without...
>> Now I changed the line "SET LIBDIR=..\lib\win-i386" in run_example.cmd
>> from quoted to non-quoted and for me it seems to work.
>>
>> Any idea what might cause this erratic behavior?
>
> I haven't a clue.
>
> Are these diet templates static? I was looking for more information but
> this page doesn't exist: http://vibed.org/templates

Yes, they are compiled to D code at compile time but you can use dynamic 
expressions and statements inside. The result is a bunch of calls of the 
form:
'write("<html><head><title>"); write(htmlEscape(myDynamicVariable)); ...".

The features page* has a paragraph about them but the syntax reference 
is still missing. I will add a notice that the Jade reference** can be 
used instead for now.

* http://vibed.org/features#diet-templates
** https://github.com/visionmedia/jade


More information about the Digitalmars-d-announce mailing list