And I have another question for Images directory ..
actually I made weblocks-app by using defwebapp macro..
(defwebapp temp-cloud
:prefix "/"
:description "temp-cloud: A new application"
:init-user-session 'temp-cloud::init-user-session
:autostart nil ;; have to start the app manually
:public-files-path #p "/Users/super/work/web/temp-cloud/pub/super"
:ignore-default-dependencies nil
:dependencies '((:stylesheet "main")
(:stylesheet "menu")
(:script "example"))
:debug t
) ;; accept the defaults
like this . then I made directory "/Users/super/work/web/temp-cloud/
pub/super/images"
and copied aaa.png into the directory
in my init-session.lisp
(defun init-user-session (comp)
(setf (composite-widgets comp)
(list (lambda (&rest args)
(with-html
(:h1 "test")
(:ul
(:li (:a :href "/pub/super/images/aaa.png" "aaa"))
)
)))))
this code does not show images . and I copied aaa.png to "/Users/super/
work/web/temp-cloud/pub/images"
(defun init-user-session (comp)
(setf (composite-widgets comp)
(list (lambda (&rest args)
(with-html
(:h1 "test")
(:ul
(:li (:a :href "/pub/images/aaa.png" "aaa"))
)
)))))
and then It works !!! but I don't want so
How do I get working code in my image file "aaa.png" at "/Users/super/
work/web/temp-cloud/pub/super/images" ??
plz Help me. sob..
On 6월10일, 오후6시25분, "Leslie P. Polzer" <[email protected]> wrote:
> On Jun 10, 5:40 am, crazia <[email protected]> wrote:
>
> > (defwebapp resty-weblocgks
> > :prefix "/"
> > :description "resty-weblocgks: An example application"
> > :init-user-session 'resty-weblocgks::init-user-session
> > :public-files-path "/PATH/APP/pub/"
> > :autostart t
> > :dependencies '((:script "superman"))
> > :ignore-default-dependencies nil)
>
> > I change example code like this?
>
> Looks good.
>
> > and How do I bundle "superman.js" file automatically? (moving "vzn" ,
> > versioning and gzip automatically)
>
> I think bundling is enabled by default, but you need to turn off
> debugging.
> Try :debug nil in the defwebapp form and in the call to start-
> weblocks.
>
> Leslie
--
You received this message because you are subscribed to the Google Groups
"weblocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/weblocks?hl=en.