In the context of servers static has a different meaning.
Usually it means that it is the same now a minute ago and a minute from now.
But on servers it means that you will send html that doesn't need to change in order to be seen.
Think of Vue, Vue is dynamic because you have to send the JavaScript to the browser and then the page is made on the browser.
This html doesn't have to come from a file, usually it will not, it can be a string created from a stringbuilder in B4j.
To have the concept clear, you will create static content from dynamic sources.
would I getting any issue?
None. In the past frameworks like ASP handled this so wrong that broke our minds forever, you can pass anything you want and the browser will render it just fine.
Free marker allows you to mix a template with a dynamic content and convert that into a string that will be sent thru the resp class to the browser.
You don't call the template directly nor create an html file from the result.