- Added the ability to define multiple themes for e.g. dark mode.
- Cache time is now configurable.
- Fix cosmetic trailing space issue
- Attributes from the API will now be passed on to the code component. (The API now returns 'data-lang' as an attribute.)
Blockis now Macroable
- Added the ability to run post-processors per block rather than globally. (#20)
- Changed the signature of the file processor.
- Added the ability to configure the directories where Torchlight looks for snippets.
- Post-processors don't run if Laravel is compiling views.
- You can set
tab_widthtofalseto output literal tabs into the rendered HTML.
- Livewire middleware won't be registered for V1 of Livewire, since it's not possible.
- Replace tabs with spaces in code before it's sent to the API.
- Added support for Laravel Livewire (#10)
- Added post-processors to allow your app to hook into the rendered response before it's sent to the browser.
- Changed the signature for the Manager class. Remove the requirement for the container to be passed in.
- Added the ability to send
optionsfrom the config file to the API.
- The default response (used if a request fails) now includes the
<div class='line'>wrappers.
- Catch
ConnectionExceptions in addition to exceptions from the Torchlight API.
getConfigUsingnow accepts a plain array in addition to a callback.
- Cover a bug in Laravel pre 8.23.0.
- Ability to override the environment.
Torchlight::findTorchlightIdsmethod to search a string and return all Torchlight placeholders.BladeManager::getBlocksBladeManager::clearBlocks
- Added square brackets around the Torchlight ID in the Block placeholder.
- The BladeManager no longer clears the blocks while rendering. Needed for Jigsaw.
- Add
Torchlightfacade - Add ability to set the cache implementation.
- Add ability to abstract config from Laravel's
confighelper. - Changed package name from
torchlight/laraveltotorchlight/torchlight-laravel
- Add
Block::generateIdsUsing