Liara is a static page generator written in Python. See:
- The liara website for an overview of liara. That page has been generated using liara.
- The documentation containing the quick-start guide and more.
A static page generator written in Python.
Home Page: https://liara.sh13.net
License: BSD 2-Clause "Simplified" License
Liara is a static page generator written in Python. See:
Steps to reproduce:
$ liara quickstart
$ liara mv content/_index.md content/_index.md~
Hi,
got the following error if I try to execute:
{% if request.endpoint.endswith(endpoint) %}
command line said:
jinja2.exceptions.UndefinedError: 'request' is undefined
I'm new to Liara, under Flask its working when I importing request over app.py?
Kind regards!
Sebastian
Putting an unsupported resource type into the template resource directory results in an key error. Steps to reproduce:
$ liara quickstart
$ touch templates/resources/style.scss.backup
$ liara build
When using liara create-config
to generate a default config.yaml
, it crashes because when it calls dump_yaml()
, options.output
is just a string with the filename, not a file object that Python can call write()
on.
Stacktrace:
Traceback (most recent call last):
File "/usr/local/bin/liara", line 8, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.7/site-packages/liara/cmdline.py", line 96, in cli
args.func(args)
File "/usr/local/lib/python3.7/site-packages/liara/cmdline.py", line 191, in create_config
dump_yaml(create_default_configuration(), options.output)
File "/usr/local/lib/python3.7/site-packages/liara/yaml.py", line 27, in dump_yaml
return yaml.dump(data, stream, Dumper=Dumper)
File "/usr/local/lib/python3.7/site-packages/yaml/__init__.py", line 290, in dump
return dump_all([data], stream, Dumper=Dumper, **kwds)
File "/usr/local/lib/python3.7/site-packages/yaml/__init__.py", line 278, in dump_all
dumper.represent(data)
File "/usr/local/lib/python3.7/site-packages/yaml/representer.py", line 28, in represent
self.serialize(node)
File "ext/_yaml.pyx", line 1350, in _yaml.CEmitter.serialize
File "ext/_yaml.pyx", line 1525, in _yaml.output_handler
No patch to fix since I'm not sure where the right place to put the open with the right access mode is.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.