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
- httpd
- 코드
- client
- Linux
- Web
- PowerShell
- error
- File
- Python
- 외부링크
- monitoring
- MariaDB
- 번역
- apache
- 이슈처리
- 예제
- command
- engineering
- 명령어
- limits
- check
- mysql
- Ansible
- example
- Module
- configuration
- RESTful
- deview
- Windows
- code
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함