scriptlet
nounUK /ˈskrɪp.tlət/
US /ˈskrɪp.tlət/
A scriptlet is a very small piece of computer code that does one little job.
The website uses a scriptlet to show the current time.
OTHER MEANINGS
2. A short, simple script used in a template or content management system to add a small feature.
She added a scriptlet to the page to display a weather widget.
3. A small reusable block of scripting code embedded in a larger program or document.
The developer pasted a scriptlet into the HTML file to handle the form.
4. In some software, a tiny automated task that runs a single action.
This scriptlet automatically renames all the files in the folder.