How can i get template variables in backend plugin

@yincongcyincong You might check this article, or I am just linking it here for other devs who might need this answer in future.
Template variables in backend