Custom Scriban Object processor in SXA
Hello everyone, In this blog, we will learn one more important concepts in Sitecore SXA and i.e. Custom Scriban object. As scriban was introduced in Sitecore 9.3 SXA, more developer started using Scriban while creating rendering variants. By default Sitecore provide a number of built-in Scriban Objects which you find on the Sitecore document site Link . Still there are time, where we need to create our own custom Scriban objects and we will see this here, how we can implement it. Let's take a use case: Reading Dictionary directly inside Scriban template. For this we don't have any built-in object and we will implement it using custom Scriban Object. Steps for creating Custom Scriban Object Creating custom Scriban processor inheriting from IGenerateScribanContextProcessor Registering the Processor under generateScribanContext pipeline So lets see the code without wasting any more time. Step 1: Create a Custom Scriban Processor ( GetDictionary ). Inherit the class from Add...