1
0
mirror of https://github.com/lektor/lektor-website.git synced 2025-03-16 18:15:51 +01:00
2015-12-19 14:52:17 +01:00

21 lines
430 B
Markdown

title: source_filename
---
summary: Returns the filename of the source file.
---
type: property
---
body:
This returns the primary source filename of the source object. So for
instance if this is an asset it will be the path to it, if it is a record
it will be the path to the lektor contents file. The path is relative
to the project folder.
## Example
```html+jinja
<p>
Generated from {{ this.source_filename }}
</p>
```