Plugin development : from ExpressionEngine to Craft
If you want to render a template in Craft 3 you can do

$html = Craft::$app-&gt;getView()-&gt;renderTemplate('path/to/template', $variables);


If you want to return/render a template within your Controller action you can do

return $this-&gt;renderTemplate('path/to/template', $variables);


If you want to render a plugin template you'll need to attach your plugins handle to your path

 'plugin-handle/path/to/template'