Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexander Navratil alexnavratil

View GitHub Profile
@alexnavratil
alexnavratil / typescript-template-extractor.java
Last active Nov 11, 2016
Extracts Angular 2 inlined templates into seperate html files. Just copy your source directory into the same directory as this java file and run it.
View typescript-template-extractor.java
import java.io.BufferedWriter;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
/**
@alexnavratil
alexnavratil / typescript-template-extractor
Created Nov 11, 2016
Extracts Angular 2 inlined templates into seperate html files
View typescript-template-extractor
import java.io.BufferedWriter;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
/**