What is the style best practice for commenting out javascript in a django template? -


in block in django template, best practice commenting out normal, non-sensitive javascript? options see:

  1. django template style comments only

  2. js style comments only

  3. mixing options 1 , 2 such as

    {% comment %}     */     long     multi-line     comment     */ {% endcomment %}  {% comment %}     // long     // multi-line     // comment {% endcomment %}  {# // inline comment #}  or  {# /* inline comment */ #} 

i can make argument of 3 options, , have not found addressed in style guide such https://docs.djangoproject.com/en/1.8/internals/contributing/writing-code/coding-style/. arguments or against of these options make include addressing readability, syntax highlighting, intuitiveness, , minimizing final html.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -