fx::env('get_current_template') -> fx::env()->getCurrentTemplate for better performance