title: Configuring Django SnipMate snippets only for Django projects
body: <p>I'm using <a href="https://github.com/msanders/snipmate.vim" rel="nofollow noreferrer">SnipMate</a> with Rob Hudson's <a href="https://github.com/robhudson/snipmate_for_django" rel="nofollow noreferrer"><code>snipmate_for_django</code></a> snippets for Django development with <a href="https://github.com/b4winckler/macvim" rel="nofollow noreferrer">MacVim</a>.</p>
  <p>To activate the snippets automatically based on filetype, Rob recommends adding the following to <code>~/.vimrc</code>:</p>
  <pre><code>autocmd FileType python set ft=python.django &quot; For SnipMate
  autocmd FileType html set ft=htmldjango.html &quot; For SnipMate
  </code></pre>
  <p>This enables the <code>htmldjango</code> snippets for all <code>html</code> files.</p>
  <p>Is there a way to enable the <code>htmldjango</code> snippets only for <code>html</code> files located in a Django project?</p>
  <p>For instance, I don't want to enable <code>htmldjango</code> snippets if I'm working on an <code>html</code> file related to a Rails project.</p>