[themes] include external code in theme function