... | ... | @@ -62,7 +62,8 @@ Go back into the editor, run `vim main.py` |
|
|
We just changed the index function, to return HTML.
|
|
|
But no one wants to inline HTML into code, and since we just installed a templating engine, we should use it.
|
|
|
|
|
|
Now refactoring code using an unfamiliar editor is a daunting task, so depending on how long it takes, we might have to skip ahead after this. Keep calm and don't panic, it'll be fine.
|
|
|
Now refactoring code using an unfamiliar editor is a daunting task, so depending on how long it takes, we might have to skip ahead after this.
|
|
|
Keep calm and don't panic, it'll be fine.
|
|
|
|
|
|
New vim commands which might be useful.
|
|
|
|
... | ... | @@ -148,7 +149,9 @@ And we've removed the items route. |
|
|
As always, press `Esc` to exit insert-mode, and :w to save.
|
|
|
|
|
|
Now come the hard part, the need to work with multiple files.
|
|
|
The easy way, is to simply exit vim, and start vim on a new file, that could be `:q` and `vim api_router.py`
|
|
|
|
|
|
The easy way, is to simply exit vim, and start vim on a new file,
|
|
|
that could be `:q` and `vim api_router.py`
|
|
|
|
|
|
But for the brave, working with multiple files or buffers as vim calls them is a powerful skill.
|
|
|
|
... | ... | |