In updating my site to Jekyll, I needed to have Twilio Client support for my demos. I had already made a Wordpress Plugin, so it was a quick conversion to make a Twilio Client Liquid Tag. I also got an up to date version of Twilio Client running as well, to take advantage of the WebRTC functionality.

First add the required libraries to your head tag:

<script type="text/javascript" src="//static.twilio.com/libs/twiliojs/1.2/twilio.min.js"></script>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

Then wherever you want to use Twilio Client place this tag:

<p><% twilio_client sid:APXXXXXXXXXXXXXXXXXXXXXX caption:call digits %></p>

Save this file to your ‘_plugins’ directory, or create the directory in the root of your site:

Feel free to send a pull request if you see ways to optimize.