1
0
mirror of https://github.com/lektor/lektor-website.git synced 2025-02-22 07:00:38 +01:00
lektor-website/content/docs/api/db/obj/source-filename/contents.lr

21 lines
430 B
Plaintext
Raw Normal View History

2015-12-19 14:52:17 +01:00
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>
```