Check whether compilation is necessary. Compile if the inline template or file has not been
compiled yet. Or if local_assigns has a new key, which isn’t
supported by the compiled code yet. Or if the file has changed on disk and
checking file mods hasn’t been disabled.