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.<br>
<br><div class="gmail_quote">On Tue, May 29, 2012 at 1:46 PM, Don Clugston <span dir="ltr"><<a href="mailto:dac@nospam.com" target="_blank">dac@nospam.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 28/05/12 03:40, Chang Long wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Saturday, 26 May 2012 at 15:56:38 UTC, Chang Long wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
CTFE execute will be very useful on web develop, for example It is<br>
very hard to create a CTFE version template engine with rich feature.<br>
But we can use execute call to transe template file to d code string,<br>
then mixed it to application.<br>
<br>
The vibed project is very cool and I want to add my Jade template to<br>
this, but I can't find other way to do it.<br>
</blockquote></blockquote>
<br></div>
You can do a lot with import(filename);<div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Maybe we also need a compiler option to enable this CTFE io operate<br>
because security.<br>
</blockquote>
<br>
Let me make myself more clear, what I suggestion is something like this:<br>
<br>
mixin( std.process.execute("/usr/bin/<u></u>template_engine<br>
template_file_path.htm") );<br>
</blockquote>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>