harrydeluxe / php-liquid

A PHP port of Ruby's Liquid Templates
http://www.delacap.com/artikel/Liquid-Templates/
MIT License
239 stars 119 forks source link

include break if not exists #44

Open hakimihamdan88 opened 7 years ago

hakimihamdan88 commented 7 years ago

How do I ignore the exception if no files in include? I am planning to let my users keyin the liquid syntax

{% include 'header' %}

asacarter commented 6 years ago

+1.

I would also like to know how to do this and how to specify the folder where the file is located.

It would be really useful if an include example was added to the examples.

I see your post was created some time ago @hakimihamdan88, did you figure it out?

hakimihamdan88 commented 6 years ago

@asacarter nah, still cant figure out. as for now, Im using Twig ;(