second parameter in template shortcuts script() and style() is optional

cc @DeepDiver1975 @LukasReschke