16. JINJA2 - -5
• import a macro
macros.html
sample.html
17. JINJA2 -
•
• {% for a in aList %} {{ a }} {% endfor %}
• {% if a %} {{ a }} {% endif %}
• filters
• escape : {{ diary_content | escape }} or {{ diary_content | e }}
• more filters: http://jinja.pocoo.org/2/documentation/templates#builtin-
filters
18. AGENDA
• linux
• vim
• (jinja2)
•
• app/ html js
• svn
25. APP/ -5
app html css
• app html id id test tag id
app12_test 12 appid
• link css app css <nie:css
> <nie:css src=”xx.css”/>
• app css css app
#app_content_[appid] app id
app_content_[appid] div
26. APP/ -6
app html css
• html tag
• css expression
• html tag css
27. APP/ -7
nieJS
• js <nie:script>
• nieJS
• nieJS js
document.getElementById(id)
• value var a =
obj.value; / obj.value = “aaa” nieJS var a = obj.getValue(); / obj.setValue(“aaa”)
• document.cookie
• http://123.125.48.32:8899/NIEJS
31. SVN -1
• svn co <addr> checkout
• svn up
• svn st
• svn add <file>
• svn del <file>
• svn mv src_file desc_file
• svn diff
• svn ci <file> /
32. SVN -2
svn st
• A added
• C conflict
• D deleted
• M modified
• R replace
• not under version control
• under version control but missing
• ~ The file, directory, or symbolic link item is in the repository as one kind of object, but what's actually in your
working copy is some other kind
33. SVN -3
svn up
• U The files marked with U contained no local changes but were Updated with changes from the
repository.
• G The G stands for merGed, which means that the file had local changes to begin with, but the
changes coming from the repository didn't overlap with the local changes.
• C Confict
• U G C up C ~~
34. SVN -4
C conflict ...
• C a.html
• vim >>> ===
•
•
• svn resolved a.html svn
• svn st a.html c
35. SVN -5
• svn co checkout
•
• svn st
svn add
• svn up conflict
• svn st c conflict
• svn diff > t.diff t.diff vim t.diff
• svn ci log log