-1

When I read the source code of a project:

enter image description here

I find there is some _xxx.html, why the author give the _? is there extraordinary should pay attention?


EDIT

This is in the Python Django project.

Charles
  • 1,121
  • 19
  • 30
user7693832
  • 6,119
  • 19
  • 63
  • 114
  • I've updated my answer below to be a bit more specific since you updated the question w/ the framework you're using. – Charles Aug 16 '17 at 13:38

1 Answers1

0

The template files are probably partials, or rather templates that aren't meant to be served directly, but rather within another template. Django doesn't seem to have anything specific about how to name your partials, but it does look like it's common practice in MVC frameworks to use _xx.html as a naming convention.

ASP.Net: ASP.NET MVC3 Partial View naming convention

RoR: http://guides.rubyonrails.org/layouts_and_rendering.html#using-partials

Django: https://oncampus.oberlin.edu/webteam/2012/09/architecture-django-templates

Charles
  • 1,121
  • 19
  • 30