AWS chalice 에서 jinja2 템플릿 활용하기
디렉토리 구조
- app.py
- requirements.txt
- chalicelib/
- tempaltes/
- index.html
- tempaltes/
| <?php | |
| require ' vendor/autoload.php ' ; | |
| /** | |
| * Handles an HTTP request that contains information for registering/unregistering | |
| * a FNA application. |
AWS chalice 에서 jinja2 템플릿 활용하기
디렉토리 구조
| #!/usr/bin/python | |
| import os | |
| import sys | |
| import boto3 | |
| # get an access token, local (from) directory, and S3 (to) directory | |
| # from the command-line | |
| local_directory, bucket, destination = sys.argv[1:4] |