Skip to content

Instantly share code, notes, and snippets.

View alexnavratil's full-sized avatar

Alexander Navratil alexnavratil

View GitHub Profile
@alexnavratil
alexnavratil / typescript-template-extractor.java
Last active November 11, 2016 08:52
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.
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 November 11, 2016 08:30
Extracts Angular 2 inlined templates into seperate html files
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;
/**