I want to include a file if the condition is applied in jQuery using Smarty templates my Code :
{literal}
<script>
if (window.matchMedia('(max-width: 767px)').matches) {
// here is the include file
{include= file.tpl}
}
</script>
{/literal}