Directory-like pattern for the location of a resource. Paths can be created
in two ways. The first is in the "raw" form beginning with a forward
slash /:
/path/to/resource
The second is by converting from a string using the path()
function:
path("path/to/resource")
In addition to the methods listed below, paths have the following operators:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2019-12-13 UTC."],[],[],null,["# Interface: Path\n\n[rules](/docs/reference/rules/rules).Path\n=========================================\n\ninterface static\n\nDirectory-like pattern for the location of a resource. Paths can be created\nin two ways. The first is in the \"raw\" form beginning with a forward\nslash `/`: \n\n```text\n/path/to/resource\n```\n\nThe second is by converting from a string using the `path()`\nfunction: \n\n```text\npath(\"path/to/resource\")\n```\n\nIn addition to the methods listed below, paths have the following operators:\n\n*** ** * ** ***\n\n| Operator | Usage |\n|----------|---------------------------------------------------|\n| `x == y` | Compare paths x and y |\n| `x[f]` | Index operator, get value at binding field name f |\n| `x[i]` | Index operator, get value at numeric index i |\n| `x.f` | Value at binding field name f |\n\nMethod\n------\n\n### bind\n\nbind(map)\n\nBind key-value pairs in a map to a path.\n\n| #### Parameter ||\n|-----|-----------------------------------------------------------------------------------|\n| map | [rules.Map](/docs/reference/rules/rules.Map) Map to bind. Value must not be null. |\n\n#### Example\n\n // Make the path '/path/something/another' by binding a map\n (/path/$(foo)/$(bar)).bind({\"foo\": \"something\", \"bar\": \"another\"})"]]