- 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.)
Block
is 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_width
tofalse
to 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
options
from the config file to the API.
- The default response (used if a request fails) now includes the
<div class='line'>
wrappers.
- Catch
ConnectionException
s in addition to exceptions from the Torchlight API.
getConfigUsing
now accepts a plain array in addition to a callback.
- Cover a bug in Laravel pre 8.23.0.
- Ability to override the environment.
Torchlight::findTorchlightIds
method to search a string and return all Torchlight placeholders.BladeManager::getBlocks
BladeManager::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
Torchlight
facade - Add ability to set the cache implementation.
- Add ability to abstract config from Laravel's
config
helper. - Changed package name from
torchlight/laravel
totorchlight/torchlight-laravel
- Add
Block::generateIdsUsing