| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 def stripindex(path): | |
| 2 if path.endswith("index"): | |
| 3 return path[:-5] | |
|
Wladimir Palant
2015/12/18 10:58:15
This logic is wrong - imagine a page called fooind
saroyanm
2015/12/18 11:10:15
Ahh right.
Wladimir Palant
2015/12/18 11:13:44
In fact, given that this logic is only necessary i
saroyanm
2015/12/18 11:24:18
IMO it will affect readability of template file, I
Wladimir Palant
2015/12/18 11:58:31
Fair enough.
| |
| 4 return path | |
| 5 | |
| OLD | NEW |