PHPnews.io

Overview for 'mattallan'





Server Side Templating With JSX

Written by mattallan.org / Original link on Nov. 14, 2018

Introduction TypeScript is great for writing typesafe backends in Node.js but what about the templates? The commonly used template engines for Node leave a lot to be desired in the type safety department.You won’t get an error if you mess up variable name:import * as handlebars from 'handlebars'; …


Modern Javascript Without a Bundler

Written by mattallan.org / Original link on Nov. 1, 2018

Introduction Lately I’ve been learning TypeScript, a typed superset of JavaScript that compiles down to plain JavaScript. It’s easy enough to run my scripts with node, but running them in the browser can be complex.By default TypeScript generates a corresponding .js file for every .ts file. If you …