Comments (7)
I suggest always giving a default value to your variables. Instead of leaving output
undefined when foo
isn't True
-ish, give it a default value like None
, that should solve the problem.
from aspen.py.
I think the only ever place we really hit this was with
response
,
In AspenWeb/pando.py#426 it was with resource
, but as you said it was about writing the variable, not reading it, and we fixed the problem with AspenWeb/pando.py#427.
from aspen.py.
Should we rename this to
aspen_output
to avoid the conflict? Should we prefix other names, likepath
andqs
?
I'm okay with that if it's only at the simplate level (i.e. when building the context in Simplate.render_for_type
we replace output
with aspen_output
). I'm less certain about renaming the variables in the state.
from aspen.py.
We could also close this as a dupe of AspenWeb/pando.py#30.
from aspen.py.
Or perhaps close that as a dupe of this, since I think we want it in this repo instead of that one.
from aspen.py.
#27 is my preferred alternative solution to AspenWeb/pando.py#30.
from aspen.py.
Ah, that's right. :-)
Closing in favor of #27.
from aspen.py.
Related Issues (20)
- Efficient file transfer isn't implemented HOT 1
- Configuration is still taken from the environment
- Pure-python alternative to simplates HOT 18
- No easy way to pass the output of a single simplate page through a filter
- Static resources are always cached in RAM
- Repoint aspen.io to RtD HOT 5
- Broken test HOT 3
- What about a rc3 release to PyPI to finalize support for Python 3? HOT 3
- The dispatcher should not raise redirects
- Static.render doesn't check the request method HOT 2
- Not optimized for production use HOT 5
- The syntax of path variables is ambiguous HOT 4
- Drop state chain? HOT 3
- Simplates are assumed to be ASCII even under python 3
- The number of system calls made by dispatchers could be reduced
- 3.9 dropped support for Aspen "magic directories" HOT 1
- Keeping static files open
- `mmap` for static files
- Compression of static files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aspen.py.