Skip to content

Commit c4df989

Browse files
committed
Add some Django template tags
1 parent 5273782 commit c4df989

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

data/django.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,35 @@
267267
"definition":"উক্ত '|' সিম্বল এর মাধ্যমে ডাটাটাইপ ফিল্টার করা",
268268
"code":"{{ date_time | time\"H\": \"i\" }}"
269269

270+
},
271+
{
272+
"definition":"কমেন্ট ব্যাবহার করা",
273+
"code":"{% comment %} .... {% endcomment %}"
274+
275+
},
276+
{
277+
"definition":"লুপে ইনডেক্স নাম্বার চেক করা",
278+
"code":"{{ forloop.counter }} #starting index 1 Or {{ forloop.counter0 }} # starting index 0"
279+
},
280+
{
281+
"definition":"লুপে রিভার্স ইনডেক্স নাম্বার চেক করা",
282+
"code":"{{ forloop.revcounter }} # end index 1 Or {{ forloop.revcounter0 }} # end index 0"
283+
},
284+
{
285+
"definition":"টেমপ্লেট এর কিছু পরিবর্তন হলো কিনা চেক করা",
286+
"code":"{% ifchanged %} …. {% endifchanged %}"
287+
},
288+
{
289+
"definition":"Random টেক্স জেনারেট করা",
290+
"code":"{% lorem %}"
291+
},
292+
{
293+
"definition":"বর্তমান সময়",
294+
"code":"{% now \"SHORT_DATETIME_FORMAT\" %}"
295+
},
296+
{
297+
"definition":"এইচটিএমএল ট্যাগের হোয়াইটস্পেস মুছা",
298+
"code":"{% spaceless %} ….. {% endspaceless %}"
270299
}
271300

272301
]

0 commit comments

Comments
 (0)