Accessing Node.js from Twig templates in PHP applications

Node.js and PHP ecosystems are two very distinct software technologies. PHP developers often use JS build tools and Node.js developers consume mature REST APIs  from tools such as eZ Platform. In this overlapping world we need to keep bridging things together. Often the best solution is invisible to the end user.

One option for accessing HTML rendered by Node.js in JavaScript is to build an extension to allow JavaScript rendering directly from the Twig rendering engine in PHP applications using Node. There are other isomorphic rendering methods for PHP.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s