Skip to content

Commit

Permalink
Add version
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Dec 22, 2024
1 parent 78819f1 commit 714e143
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $(DST_DIR)/play.css: $(SRC_DIR)/play.css

$(DST_DIR)/index.html: $(SRC_DIR)/index.html
mkdir -p $(@D)
cp $< $@
version=$$(grep jsonpath go.mod | awk '{print $$3}'); cat $< | sed -e "s!{{version}}!$${version}!g" > $@

$(DST_DIR)/wasm_exec.js: $(WASM_EXEC)
mkdir -p $(@D)
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ <h2>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill:currentcolor; "><path d="M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"></path></svg>
About
</h2>
<p>This is the playground for <strong>github.com/theory/jsonpath</strong>, a Go package that executes an <a
<p>This is the playground for {{version}} of <strong>github.com/theory/jsonpath</strong>, a Go package that executes an <a
href="https://www.rfc-editor.org/rfc/rfc9535.html">RFC 9535 JSONPath</a> query to select values from JSON data.</p>
<p>The playground runs entirely in the browser thanks to <a href="https://tinygo.org"
title="TinyGo — A Go Compiler For Small Places">TinyGo</a>, which compiles the
Expand Down

0 comments on commit 714e143

Please sign in to comment.