[{"data":1,"prerenderedAt":270},["ShallowReactive",2],{"/resource":3,"/resource-surround":260},{"id":4,"title":5,"body":6,"description":234,"extension":235,"meta":236,"navigation":253,"path":257,"seo":258,"stem":12,"__hash__":259},"content/resource.md","Resource Extension",{"type":7,"value":8,"toc":211},"minimark",[9,22,32,42,46,54,63,66,85,94,103,112,119,147,156,188],[10,11,15],"h1",{"id":12,"className":13},"resource",[14],"section-heading",[16,17,21],"a",{"className":18,"href":20},[19],"section-anchor","#resource","Resource",[23,24,27],"h2",{"id":25,"className":26},"using",[14],[16,28,31],{"className":29,"href":30},[19],"#using","Using",[33,34,37],"h3",{"id":35,"className":36},"purpose",[14],[16,38,41],{"className":39,"href":40},[19],"#purpose","Purpose",[43,44,45],"p",{},"The resource extension allows you to retrieve the contents of files that are bundled with a model. Bundled resources,\nwhich were added in NetLogo 7, provide a way to use the contents of other files in a model without needing to send the\nfiles alongside the model. When you add a resource to a model, the contents of the source file are stored in the model\nfile.",[43,47,48,49,53],{},"For details on bundled resources, see ",[16,50,52],{"href":51},"/resource-manager","Resource Manager",".",[33,55,58],{"id":56,"className":57},"getting-started",[14],[16,59,62],{"className":60,"href":61},[19],"#getting-started","Getting Started",[43,64,65],{},"The resource extension comes pre-installed with NetLogo. To use the resource extension in your model,\nadd a line to the top of your Code tab:",[67,68,69],"pre",{},[70,71,72,79,80,84],"code",{},[73,74,78],"span",{"className":75},[76,77],"token","keyword","extensions"," [",[73,81,12],{"className":82},[76,83],"variable","]",[43,86,87,88,90,91,93],{},"If your model already uses other extensions, then it already has an ",[70,89,78],{}," line in it,\nso just add ",[70,92,12],{}," to the list.",[43,95,96,97],{},"For more information on using NetLogo extensions, see the\n",[16,98,102],{"href":99,"rel":100},"http://ccl.northwestern.edu/netlogo/docs/extensions.html",[101],"nofollow","Extensions Guide",[23,104,107],{"id":105,"className":106},"primitives",[14],[16,108,111],{"className":109,"href":110},[19],"#primitives","Primitives",[43,113,114,115,53],{},"Looking for the primitive reference for the Resource extension? You can find ",[16,116,118],{"href":117},"/resource/dictionary","the full reference here",[120,121,125,126,133,134,139,140],"div",{"id":122,"className":123},"all",[124],"prose","\n  ",[16,127,130],{"className":128,"href":129},[70],"#get",[70,131,132],{},"resource:get","\n   ",[73,135,138],{"className":136},[137],"font-bold"," · "," \n  ",[16,141,144],{"className":142,"href":143},[70],"#list",[70,145,146],{},"resource:list",[33,148,151],{"id":149,"className":150},"all-primitives",[14],[16,152,155],{"className":153,"href":154},[19],"#all-primitives","All Primitives",[120,157,125,161,125,167,185],{"className":158,"id":160},[159],"dict_entry","get",[33,162,164,165,125],{"id":163},"resourceget","\n    ",[16,166,132],{"href":129},[168,169,172],"h4",{"id":170,"className":171},"resourceget-name",[14],[16,173,164,176,125],{"className":174,"href":175},[19],"#----resourceget-name--",[73,177,180,181],{"className":178},[179],"prim_example","resource:get ",[182,183,184],"i",{},"name",[43,186,187],{},"Reports the contents of the resource whose name matches the input string. If the resource is plain\ntext, the contents will be reported as such. Otherwise, the contents will be reported as a Base64\nstring. An error will be thrown if the specified resource does not exist.",[120,189,125,192,125,197,208],{"className":190,"id":191},[159],"list",[33,193,164,195,125],{"id":194},"resourcelist",[16,196,146],{"href":143},[168,198,201],{"id":199,"className":200},"resourcelist-1",[14],[16,202,164,205,125],{"className":203,"href":204},[19],"#----resourcelist---1",[73,206,146],{"className":207},[179],[43,209,210],{},"Reports a list of names of the bundled resources present in the model.",{"title":212,"searchDepth":213,"depth":214,"links":215},"",5,3,[216,221],{"id":25,"depth":217,"text":31,"children":218},2,[219,220],{"id":35,"depth":214,"text":41},{"id":56,"depth":214,"text":62},{"id":105,"depth":217,"text":111,"children":222},[223,224,230],{"id":149,"depth":214,"text":155},{"id":163,"depth":214,"text":225,"children":226},"\n    resource:get\n  ",[227],{"id":170,"depth":228,"text":229},4,"\n    resource:get name\n  ",{"id":194,"depth":214,"text":231,"children":232},"\n    resource:list\n  ",[233],{"id":199,"depth":228,"text":231},"Documentation for the Resource extension.","md",{"source":237,"metadataOutputPath":238,"projectConfig":239,"language":246,"inheritFrom":254,"output":253,"version":240,"icon":255,"extensionName":256,"assetsRoot":241},"../../external/extensions/resource/resource.md","content/resource.metadata.yaml",{"version":240,"projectRoot":53,"scanRoot":241,"outputRoot":242,"defaults":243,"engine":249,"partials":250,"dedupeIdenticalDiskWrites":253},"7.0.4","/home/runner/work/Helio/Helio/external/extensions/resource","content",{"inheritFrom":244,"language":246,"output":247,"extension":235,"title":248,"version":240},[245],0,"en",false,"NetLogo User Manual","mustache",{"directoryPaths":251,"extensions":252},[53],[249,235],true,[245],"i-lucide-database",{"shortName":12,"fullName":21},"/resource",{"title":5,"description":234},"oPdHulJn_AMZmMSoliazG5wQsAfFb8NGoc0h00iKX5A",[261,266],{"title":262,"path":263,"stem":264,"description":265},"System Requirements","/requirements","requirements","System requirements and installation guidelines for running NetLogo on different operating systems and hardware configurations.",{"title":267,"path":117,"stem":268,"description":269},"Resource Extension Dictionary: dictionary","resource/dictionary","Documentation for the dictionary primitive.",1777657790124]