title: How can I create template file inside my plugin?
body: <p>I have created a template file for a custom page inside wordpress plugin directory but I can't find the right path to it. This piece of code doesn't work:</p>
  
  <pre><code>update_post_meta( $pas_tasks_page_id, '_wp_page_template', dirname( __FILE__ ) . '/task-list-template.php' );
  </code></pre>
  
  <p>It works only when I put manually the template file into wordpress theme and changing code to:</p>
  
  <pre><code>update_post_meta( $pas_tasks_page_id, '_wp_page_template', '/task-list-template.php' );
  </code></pre>
  
  <p>But as a plugin developer I would like to create new template inside my plugin directory not manually. How should I do that?</p>