You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is a request, a question, or a bug. 😄
I'm trying to do two things:
Instead of using the built-in highlight on Req/Resp bodies, I want to iterate over the lines, and literally wrap them in p or span elements. (Needed to output to a content system that can't handle pre-formatted code/text, so I need to style with inline css...long story.) If I can get the key/values that's even better so I can format them differently, but I'll take what I can get. 😄
I can't quite figure out the format of the object delivered in request.body.
I tried each thing in request.body followed by p= request.body.thing and request.body[thing] and clearly I'm not accessing the object properly. This is either probably something very simple, or very impossible. I'm not above rewriting or patching something if needed.
This is even more basic. I have a folder, with just:
example.apib
index.jade
mixins.jade
copied from the theme branch. But no matter what I try, it often seems to try to ignore my updated mixins.jade, presumably pulling from the node install dir.
The command line I use is:
And I've tried various methods of include, like ./mixins.jade, mixins.jade, and tried an absolute path but that requires setting a Jade basedir option that I don't know how to do if you're not using the JS API directly.
Thank you in advance on both issues/questions; this will REALLY help me solve a big project.
The text was updated successfully, but these errors were encountered:
Update: I learned about NOCACHE which helps with some confusing things, and (duh) -n for relative paths. So now I can render each time fine, but still don't understand how to iterate over the object. Continued thanks :)
Instead of using the built-in highlight on Req/Resp bodies, I want to iterate over the lines, and literally wrap them in p or span elements. (Needed to output to a content system that can't handle pre-formatted code/text, so I need to style with inline css...long story.) If I can get the key/values that's even better so I can format them differently, but I'll take what I can get. 😄
I can't quite figure out the format of the object delivered in request.body.
I tried each thing in request.body followed by p= request.body.thing and request.body[thing] and clearly I'm not accessing the object properly. This is either probably something very simple, or very impossible. I'm not above rewriting or patching something if needed.
I believe the following snippets is what you need to modify with your own logic, Please let me know if you still have problems.
I don't know if this is a request, a question, or a bug. 😄
I'm trying to do two things:
p
orspan
elements. (Needed to output to a content system that can't handle pre-formatted code/text, so I need to style with inline css...long story.) If I can get the key/values that's even better so I can format them differently, but I'll take what I can get. 😄I can't quite figure out the format of the object delivered in
request.body
.I tried
each thing in request.body
followed byp= request.body.thing
andrequest.body[thing]
and clearly I'm not accessing the object properly. This is either probably something very simple, or very impossible. I'm not above rewriting or patching something if needed.copied from the theme branch. But no matter what I try, it often seems to try to ignore my updated
mixins.jade
, presumably pulling from the node install dir.The command line I use is:
aglio -i example.apib --theme-template ./index.jade -o foo.jade
And I've tried various methods of
include
, like./mixins.jade
,mixins.jade
, and tried an absolute path but that requires setting a Jadebasedir
option that I don't know how to do if you're not using the JS API directly.Thank you in advance on both issues/questions; this will REALLY help me solve a big project.
The text was updated successfully, but these errors were encountered: