Including HTML inside Jekyll tag : <p>Instead of writing out <code>{% include link_to.html i=5 text="hello world" %}</code> all the time, I've written a custom tag that allows me to do <code>{% link_to 5 hello world %}</code>. It finds the page with data <code>i</code> equal to 5 and creates a link to it.</p>

<p>But it feels clunky to generate HTML strings from inside the tag code, and it is awkward to write complicated code logic inside the HTML include code. So  is there a way to have the tag definition do the heavy lifting of finding the relevant page to link to, and have it pass on what it found to <code>link_to.html</code> to render? Sort of like the controller passing information on to the view in Rails.</p>
