If $state is true, the method begins a dynamic code, which stays dynamic even in cached templates. False ends the dynamic code.