Torchlight in Statamic #5079
-
We'd like to use Torchlight in Statamic. Torchlight is an awesome syntax highlighter. I made a simple tag for it and it works perfectly. There is one problem though. The tag does an API call. Torchlight has some logic to register each tag. It will then do a single API call to convert them. This logic currently exists for Blade, but we're using Antlers (and don't want to switch). Is there a way to go over the entire view and replace all snippets in one go? I can then look at how to implement this for Torchlight. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Why not just include your torchlight call / output as a blade partial? Then you get the benefit of the blade logic but still user antlers for everything else. You can mix and match in statamic. |
Beta Was this translation helpful? Give feedback.
Why not just include your torchlight call / output as a blade partial? Then you get the benefit of the blade logic but still user antlers for everything else. You can mix and match in statamic.