Rock U - Lava - What is Lava

Transcribed Video Content

Knowing what lava is is very important in Rock. And actually knowing lava, even just some basic lava, will completely change the way you use Rock. It allows you to personalize never before. It allows you to get data to build custom workflows, so much really important stuff. It's really a templating language that allows you to take data from the database that you may have need needed to know a complex coding language for before. Now you can use Lava, which is very simple and super powerful. Let's step through a couple different ways you can use it and what the basics of Lava are right now. When you first get started with Lava, it can feel a little bit this, and that's just that it feels scary and maybe a little bit overwhelming as you haven't gotten used to it yet and learn the syntax and all the different tools that are available to you. And you might feel a little bit overwhelmed by that seeing that maybe you're trying to get a specific thing done or you're simply trying to understand Lava, but I suggest that you just keep pushing through And everyone's been in the same spot while learning lava. But the reason you should push through is because afterwards, you'll feel a superhero, and that's because lava is one of the most powerful tools available to you in Rock. And by being the one on your team that learns how to get this done, you're gonna be seen as the superhero. Now a little bit of backstory on Lava. There's a software product called Shopify, and they created a templating language called Liquid. And we've kind of based Lava off of Liquid. And the idea is when Rock becomes liquid, it turns into lava. So it was aptly named lava. And let's look at an example of lava. So here's a very simple example. And something I wanna mention is what a templating language is, is a simple way to turn unstructured data or data that's in your database into something that you can actually display and use very easily. So right here, we have a merge field And all it says is that go you should go into the database, get the current person, and take their nickname and output it. And here I have some simple HTML. This is just to turn what we output into a heading. And I'll save it and I'll show you. Went to the database and retrieve the first name here, which is Alicia. So that's a really simple example. There are a bunch of different ways you can use merge fields and Lava and much more, powerful and complicated Lava setups, different commands and tags and more. So stay tuned, watching these videos, and read our Lava documentation to learn more about Lava. I hope your mind is blown by the fact that what Lava is now, and how powerful it is and how simple it is as well. Now keep this stuff in your mind because if you want to push forward and learn more about lava, we have tons of resources on Rock's community site. We have plenty of other videos as well and even a course. So going through all these things will help you understand better what Lava is and it'll take some work to really become an expert, but learn some of the simple stuff and just see how you can really change how you use Rock. Thanks for watching this video and have a great day.