Add CTFE execute function

Gor Gyolchanyan gor.f.gyolchanyan at gmail.com
Tue May 29 03:08:27 PDT 2012


Yeah, but it requires re-implementing all those tools. If you already have
them implemented in D, then it's not a problem, but if you don't or they
are closed-source, then import(filename) won't do much good.

On Tue, May 29, 2012 at 1:46 PM, Don Clugston <dac at nospam.com> wrote:

> On 28/05/12 03:40, Chang Long wrote:
>
>> On Saturday, 26 May 2012 at 15:56:38 UTC, Chang Long wrote:
>>
>>> CTFE execute will be very useful on web develop, for example It is
>>> very hard to create a CTFE version template engine with rich feature.
>>> But we can use execute call to transe template file to d code string,
>>> then mixed it to application.
>>>
>>> The vibed project is very cool and I want to add my Jade template to
>>> this, but I can't find other way to do it.
>>>
>>
> You can do a lot with import(filename);
>
>
>
>>> Maybe we also need a compiler option to enable this CTFE io operate
>>> because security.
>>>
>>
>> Let me make myself more clear, what I suggestion is something like this:
>>
>> mixin( std.process.execute("/usr/bin/**template_engine
>> template_file_path.htm") );
>>
>
>
>


-- 
Bye,
Gor Gyolchanyan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120529/3860d482/attachment.html>


More information about the Digitalmars-d mailing list