|
|
@ -6,7 +6,7 @@ Application Factories |
|
|
|
If you are already using packages and blueprints for your application |
|
|
|
If you are already using packages and blueprints for your application |
|
|
|
(:ref:`blueprints`) there are a couple of really nice ways to further improve |
|
|
|
(:ref:`blueprints`) there are a couple of really nice ways to further improve |
|
|
|
the experience. A common pattern is creating the application object when |
|
|
|
the experience. A common pattern is creating the application object when |
|
|
|
the blueprint is imported. But if you move the creation of this object, |
|
|
|
the blueprint is imported. But if you move the creation of this object |
|
|
|
into a function, you can then create multiple instances of this app later. |
|
|
|
into a function, you can then create multiple instances of this app later. |
|
|
|
|
|
|
|
|
|
|
|
So why would you want to do this? |
|
|
|
So why would you want to do this? |
|
|
|