Compare commits

...

5 Commits

Author SHA1 Message Date
Neville Otieno
857c5e24db Merge bf9fbdf376 into 2aee46f169 2024-04-27 23:56:25 +03:00
Julien Le Coupanec
2aee46f169 Merge pull request #381 from FabricioLopees/fix/java
Update readme: fix grammatical error in java.md
2024-04-15 10:53:51 +02:00
FabricioLopees
22977d5ca1 update readme: fix grammatical error in java.md 2024-04-13 13:05:38 -03:00
FabricioLopees
a2c99c9674 update readme: fix grammatical error in java.md 2024-04-13 12:52:16 -03:00
Neville Otieno
bf9fbdf376 Added Template Tags 2022-02-05 00:48:56 +02:00
2 changed files with 46 additions and 1 deletions

View File

@@ -118,3 +118,48 @@ django-admin version # display the current django version
# 8. $ django-admin startproject myproject
# 9. $ django-admin startapp myapp
# 10. $ python manage.py runserver
# *****************************************************************************
# Templates Tags
# *****************************************************************************
# {% extends "base.html "%} --> Base template forms basis for other templates
# {% block content %} --> Content tags extend templates to reduce repeated code
# ...
# {% endblock %}
# or
# {% block content %}
# ...
# {% endblock content %}
# {% load static "styles.css" %} --> Used in header of HTML file to load static files
# {{ variable_name }} --> Varriable tags used to display template varriables
# {% if condition %} --> Templates can include logic using if statements.
# {% elif condition %}
# {% else %}
# {% endif %}
# <ul>
# {% for item in dictionary %} --> Template variables can be iterated over using for loops inside template tags
# <li>{{ item.value }}</li>
# {% endfor %}
# </ul>
# {% url "some-other-page" %} --> Linking urls can be done using the url tag
# {% url "items" item.id %} --> You can pass arguments between pages in the url tag
# {{ variable_name | filter_name }} --> Use | to filter varriables
# {{ variable_name | filter_name:"argument"}} --> Arguments can be passed in to filters
# {{ dictionary_name | dictsort:"key_name"}} --> Dictionaries can be sorted using dicsort filter

View File

@@ -286,7 +286,7 @@ for(dataType item : array) {
### ACCESS MODIFIERS
1. defualt(No keyword required)
1. default(No keyword required)
2. private
3. public
4. protected