Atypical Site Builder Widget
Jamroom Developers
You COULD build it AS a widget, but since you're not planning on releasing the thing as a module, what I would do would be to use the TEMPLATE CODE widget along with a custom smarty function from your module and put all the logic into the function.
So in the TEMPLATE CODE widget would go:
{xxSomeModule_foo}and in your module xxSomeModule build the custom smarty function:
Docs: "Defining your own SMARTY function"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1569/defining-your-own-smarty-function
)