Accessing Eleventy Data on the Client Side

This is something I’ve demonstrated before but haven’t had a chance yet to write about it by itself. As you know, one of the best features of Eleventy is support for data files. This feature lets you define JSON or …


This content originally appeared on Raymond Camden and was authored by Raymond Camden

This is something I've demonstrated before but haven't had a chance yet to write about it by itself. As you know, one of the best features of Eleventy is support for data files. This feature lets you define JSON or JavaScript logic to return data your templates can use. But along with using data in your templates, you may want to use the same information in your client-side JavaScript code. So how can you do that?


This content originally appeared on Raymond Camden and was authored by Raymond Camden


Print Share Comment Cite Upload Translate Updates
APA

Raymond Camden | Sciencx (2021-01-18T00:00:00+00:00) Accessing Eleventy Data on the Client Side. Retrieved from https://www.scien.cx/2021/01/18/accessing-eleventy-data-on-the-client-side/

MLA
" » Accessing Eleventy Data on the Client Side." Raymond Camden | Sciencx - Monday January 18, 2021, https://www.scien.cx/2021/01/18/accessing-eleventy-data-on-the-client-side/
HARVARD
Raymond Camden | Sciencx Monday January 18, 2021 » Accessing Eleventy Data on the Client Side., viewed ,<https://www.scien.cx/2021/01/18/accessing-eleventy-data-on-the-client-side/>
VANCOUVER
Raymond Camden | Sciencx - » Accessing Eleventy Data on the Client Side. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/01/18/accessing-eleventy-data-on-the-client-side/
CHICAGO
" » Accessing Eleventy Data on the Client Side." Raymond Camden | Sciencx - Accessed . https://www.scien.cx/2021/01/18/accessing-eleventy-data-on-the-client-side/
IEEE
" » Accessing Eleventy Data on the Client Side." Raymond Camden | Sciencx [Online]. Available: https://www.scien.cx/2021/01/18/accessing-eleventy-data-on-the-client-side/. [Accessed: ]
rf:citation
» Accessing Eleventy Data on the Client Side | Raymond Camden | Sciencx | https://www.scien.cx/2021/01/18/accessing-eleventy-data-on-the-client-side/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.