feat: more complete metadata diff, scp publishing and rendering context

This commit is contained in:
2026-04-24 06:30:41 +02:00
parent e101a3db79
commit 624b698bb3
48 changed files with 2193 additions and 505 deletions

View File

@@ -6,7 +6,11 @@ defmodule BDS.Menu do
alias BDS.Projects
Record.defrecord(:xmlElement, Record.extract(:xmlElement, from_lib: "xmerl/include/xmerl.hrl"))
Record.defrecord(:xmlAttribute, Record.extract(:xmlAttribute, from_lib: "xmerl/include/xmerl.hrl"))
Record.defrecord(
:xmlAttribute,
Record.extract(:xmlAttribute, from_lib: "xmerl/include/xmerl.hrl")
)
@valid_kinds [:page, :submenu, :category_archive, :home]
@@ -187,7 +191,7 @@ defmodule BDS.Menu do
|> String.replace("&", "&")
|> String.replace("<", "&lt;")
|> String.replace(">", "&gt;")
|> String.replace(~s(") , "&quot;")
|> String.replace(~s("), "&quot;")
end
defp attr(attrs, key) do