Skip to content

Commit 1a7d3c4

Browse files
committed
Update .xnode -> .xrb.
1 parent 709e6c7 commit 1a7d3c4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/utopia/content.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ def lookup_content(name, parent_path)
137137
if Path === name
138138
name = parent_path + name
139139
name_path = name.components.dup
140-
name_path[-1] += XNODE_EXTENSION
140+
name_path[-1] += EXTENSION
141141
else
142-
name_path = name + XNODE_EXTENSION
142+
name_path = name + EXTENSION
143143
end
144144

145145
components = parent_path.components.dup

lib/utopia/content/link.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ def key
3737
end
3838
end
3939

40-
def full_path(root, extension = XNODE_EXTENSION)
40+
def full_path(root, extension = EXTENSION)
4141
if @path&.file?
42-
File.join(root, @path.dirname, self.key + XNODE_EXTENSION)
42+
File.join(root, @path.dirname, self.key + EXTENSION)
4343
end
4444
end
4545

lib/utopia/content/links.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
module Utopia
1111
class Content
1212
# The file extension for markup nodes on disk.
13-
XNODE_EXTENSION = ".xnode"
13+
EXTENSION = ".xrb"
1414
INDEX = "index"
1515

1616
class Links
@@ -24,7 +24,7 @@ def self.index(root, path, **options)
2424
self.new(root).index(path, **options)
2525
end
2626

27-
def initialize(root, extension: XNODE_EXTENSION)
27+
def initialize(root, extension: EXTENSION)
2828
@root = root
2929

3030
@extension = extension

0 commit comments

Comments
 (0)