airspeed를 사용한 템플릿 설정 관리
https://github.com/purcell/airspeed 1234567891011121314import airespeed t = airspeed.Template("""Old people:#foreach ($person in $people) #if($person.age > 70) $person.name #end#endThird person is $people[2].name""")people = [{'name': 'Bill', 'age': 100}, {'name': 'Bob', 'age': 90}, {'name': 'Mark', 'age': 25}]print t.merge(locals()) Colored by Color Scriptercs 123456789 Old people: Bill Bob Thi..
프로그래밍
2016. 10. 19. 16:58
warpmemory
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
페이지
TAG
- Linux
- configuration
- File
- 예제
- engineering
- 명령어
- 이슈처리
- client
- MariaDB
- Ansible
- Windows
- deview
- example
- PowerShell
- check
- error
- Python
- limits
- Web
- Module
- 외부링크
- 코드
- apache
- mysql
- RESTful
- httpd
- code
- command
- monitoring
- 번역
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함