Andy Jarrett // Code. Develop. Manage.

Using Node to create HTML templates from BlogCFC entries

I am in the middle of moving my site over to static files ... more on that later though. For now I needed to convert all of my blog entries in to a basic HTML file with some Meta data at the top so Node.JS to the rescue.

I've created a project on Github called blogcfc2html which does the job quite quickly and efficiently. If you have a look you'll notice that I missed out on some of Node.js asynchronous functionality and used the blocking, synchronous, writeFileSync. The reason for this came down to trying to export 1200+ entries dating back to 2003 which ended up causing issues because of my systems "ulimit".


I’m here, learning and working away. If you liked this content and want to keep me going, consider buying me a coffee.
Your support keeps this site running and the coffee brewing! ☕️