Re: [pollen] Error rendering value from cache

2018-02-15 Thread Matthew Butterick
Hard to say exactly without seeing the code. Judging from the error msg:

> output: don't know how to render value: '#hasheq((here-path . 
> "/Users/basus/src/basus/publications/index.html.pm ") 
> (title . "Publications"))

It looks like you're trying to drop the whole `metas` table into your template, 
rather than just the `title` field.




> On Feb 15, 2018, at 1:48 PM, Shrutarshi Basu  wrote:
> 
> I also have a title tag, so maybe that is what causing this issue? Clearing 
> out the cache seems to let things compile fine. Any help would be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pollenpub+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[pollen] Error rendering value from cache

2018-02-15 Thread Shrutarshi Basu
I’m getting the following error when trying to render a Pollen file:


raco pollen render publications/index.html.pm
rendering publications/index.html.pm
rendering: /publications/index.html.pm as /publications/index.html
rendering: /template.html (from cache)
output: don't know how to render value: '#hasheq((here-path .
"/Users/basus/src/basus/publications/index.html.pm") (title .
"Publications"))
  context...:
   /Users/basus/src/pollen/pollen/private/output.rkt:141:2: loop
   /Users/basus/src/pollen/pollen/private/output.rkt:126:2: output-block
   /Users/basus/src/pollen/pollen/private/output.rkt:135:10: for-loop
   /Users/basus/src/pollen/pollen/private/output.rkt:126:2: output-block
   /Users/basus/src/pollen/pollen/private/output.rkt:50:0: output5
   /Applications/Racket
v6.4/collects/racket/contract/private/arrow-val-first.rkt:269:25
   /Applications/Racket v6.4/collects/racket/port.rkt:125:0:
with-output-to-string
   /Users/basus/src/pollen/pollen/render.rkt:209:0:
render-markup-or-markdown-source33
   /Users/basus/src/pollen/pollen/render.rkt:132:0: render26
   /Users/basus/src/pollen/pollen/private/cache-utils.rkt:97:2:
fetch-dest-file
   /Applications/Racket v6.4/collects/file/cache.rkt:63:2:
fetch-and-continue
   /Applications/Racket
v6.4/collects/racket/contract/private/arrow-val-first.rkt:335:3
   /Users/basus/src/pollen/pollen/private/cache-utils.rkt:88:0: cache-ref!14
   /Applications/Racket
v6.4/collects/racket/private/more-scheme.rkt:373:13: hash-ref!
   render-to-file-if-needed
   /Users/basus/src/pollen/pollen/render.rkt:73:0:
render-from-source-or-output-path


I also have a title tag, so maybe that is what causing this issue? Clearing
out the cache seems to let things compile fine. Any help would be
appreciated.

Thanks,
Basu

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pollenpub+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.