mmontone / djula

Common Lisp port of the Django templating language
http://mmontone.github.io/djula/djula
MIT License
152 stars 21 forks source link

How to access elements of a plist #40

Closed fungiblecog closed 7 years ago

fungiblecog commented 7 years ago

Sorry if this is obvious, but I've read the docs and although there is a reference to accessing elements of an alist I don't see anything for plists (or lists in general) other than looping over the elements. I want to access arbitrary key value pairs by key.

mmontone commented 7 years ago

Hello. Djula uses cl-access library for accessing things.

So the plist.key syntax should work.

Let me know if it doesn't.

fungiblecog commented 7 years ago

Sweet, that works perfectly.

abishek commented 5 years ago

Can someone give an example of this type of looping? I am a noobie tryna get this working..

abishek commented 5 years ago

Can someone give an example of this type of looping? I am a noobie tryna get this working..

Thanks! I got it working. I was making a mistake in the way I was writing my code.