Typescript with vibe.d

GreatSam4sure greatsam4sure at gmail.com
Tue Mar 10 06:35:47 UTC 2020


On Monday, 9 March 2020 at 17:46:42 UTC, Steven Schveighoffer 
wrote:
> On 3/9/20 1:23 PM, GreatSam4sure wrote:
>> [...]
>
> You can use it, but you have to compile it yourself. Vibe.d 
> does nothing with the javascript except serve it to the 
> browser. It has no restrictions on what files can be sent, but 
> does not convert anything for you.
>
>> [...]
>
> No. This means that if you wanted to use, for instance, a diet 
> template to generate typescript, this would not work.
>
> My recommendation in that case is to generate javascript data 
> using diet templates, and use it from a Typescript file that is 
> pre-compiled before being served via vibe.d.
>
> -Steve


Thanks, that is what I want to know



More information about the Digitalmars-d-learn mailing list