root can't access current-metas #188

Closed
opened 6 years ago by sorawee · 1 comments
sorawee commented 6 years ago (Migrated from github.com)

Consider:

;; pollen.rkt
(provide my-tag root)
(require pollen/core)
(define (my-tag)
  (println (current-metas))
  "blah")
(define (root . xs)
  (println (current-metas))
  `(root ,@xs))

and

;; test.html.pm

#lang pollen

◊my-tag[]

In the console, I see that my-tag prints metas successfully, while root doesn't.

Consider: ``` ;; pollen.rkt (provide my-tag root) (require pollen/core) (define (my-tag) (println (current-metas)) "blah") (define (root . xs) (println (current-metas)) `(root ,@xs)) ``` and ``` ;; test.html.pm #lang pollen ◊my-tag[] ``` In the console, I see that `my-tag` prints `metas` successfully, while `root` doesn't.
mbutterick commented 6 years ago (Migrated from github.com)

Fixed. Thanks.

Fixed. Thanks.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/pollen#188
Loading…
There is no content yet.