I have a config using plumber, but if I try to call data in my templates that does not exist in my data.json, then an empty string will just get into html, is it possible to catch an error when data is called incorrectly?
Code example
<h2>{{ data[lang].header.title }}</h2> -> <h2>Hello, bro</h2>
but
<h2>{{ data[lang].header.tite }}</h2> -> <h2></h2>
I would like to get an error if .tite does not exist
I have a config using plumber, but if I try to call data in my templates that does not exist in my data.json, then an empty string will just get into html, is it possible to catch an error when data is called incorrectly?
My config
Json
Code example
<h2>{{ data[lang].header.title }}</h2>
-><h2>Hello, bro</h2>
but<h2>{{ data[lang].header.tite }}</h2>
-><h2></h2>
I would like to get an error if.tite
does not exist