본문 바로가기
프로젝트

FastAPI) JinJaScript

by Wanado 2022. 10. 31.
728x90

Fast, expressive and extensible templating language.

 

Jinja tags allows developers to be confident while working with backend data

 

context:

{

 "todos" : todo_list

}

          vvvvvv

{% for todo in todos %}

 Do something with todo

{% endfor %}

 

{% if todos %}
	Displaying: {{ todos|length }} Todos
{% else %}
    You don't have any todos :)
{% endif %}

{% %} : some type of control flow loops or logic

{{  }} : a specific variable

 

728x90

'프로젝트' 카테고리의 다른 글

프로젝트 -화면설계  (0) 2023.02.14
FastAPI Enum 타입  (0) 2022.12.30
카카오톡 공유 메시지 보내기  (0) 2022.12.28
FastAPI/Docker) 프로젝트 시작  (0) 2022.11.16
FastAPI) SQL 데이터베이스  (1) 2022.10.31