<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Typescript on Strathweb. A free flowing tech monologue.</title>
    <link>https://www.strathweb.com/categories/typescript/</link>
    <description>Recent content in Typescript on Strathweb. A free flowing tech monologue.</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 08 Oct 2012 04:38:07 +0000</lastBuildDate><atom:link href="https://www.strathweb.com/categories/typescript/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Use Web API as a dynamic runtime Typescript compiler</title>
      <link>https://www.strathweb.com/2012/10/use-web-api-as-a-dynamic-runtime-typescript-compiler/</link>
      <pubDate>Mon, 08 Oct 2012 04:38:07 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2012/10/use-web-api-as-a-dynamic-runtime-typescript-compiler/</guid>
      <description>&lt;p&gt;There’s been a lot of community buzz about Typescript recently – and rightfully so – as it solves a lot of Javascript’s issues, and despite being in its infancy, shows a tremendous amount of potential already.&lt;/p&gt;
&lt;p&gt;One of the features (or side effects, depending on how you look at it) of Typescript, is that your are required to compile your code, to produce JS output. Sure, it is possible to dynamically compile Typescript in the browser (using its JS compiler), but that requires you to reference Typescript.js which is roughly 250 kB, and might be a tough pill to swallow.&lt;/p&gt;
&lt;p&gt;However, using the ASP.NET Swiss army knife called Web API, and an approach we already disuussed on this blog &lt;a href=&#34;http://www.strathweb.com/2012/09/generate-kindle-mobi-ebooks-with-your-asp-net-web-api/&#34;&gt;before&lt;/a&gt;, let me show you how you can quite smoothly leverage on Web API pipeline to dynamically compile your Typescript code into Javascript at runtime.&lt;/p&gt;
&lt;p&gt;More after the jump.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
