You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff --git a/src/main/archetype/ui.apps/src/main/content/jcr_root/apps/__appsFolderName__/components/content/helloworld/helloworld.html b/src/main/archetype/ui.apps/src/main/content/jcr_root/apps/__appsFolderName__/components/content/helloworld/helloworld.html
index d3bb0a8..f49ba58 100644
--- a/src/main/archetype/ui.apps/src/main/content/jcr_root/apps/__appsFolderName__/components/content/helloworld/helloworld.html
+++ b/src/main/archetype/ui.apps/src/main/content/jcr_root/apps/__appsFolderName__/components/content/helloworld/helloworld.html
@@ -13,10 +13,9 @@
See the License for the specific language governing permissions and
limitations under the License.
*/-->
-#set( $symbol_dollar = '$' )
-<p data-sly-test="${symbol_dollar}{properties.text}">Text property: ${symbol_dollar}{properties.text}</p>
+<p data-sly-test="\${properties.text}">Text property: \${properties.text}</p>
<pre data-sly-use.hello="${package}.core.models.HelloWorldModel">
HelloWorldModel says:
-${symbol_dollar}{hello.message}
+\${hello.message}
</pre>
And the output included the backslash character, which is undesired. If you have a way of working around it, please submit a pull request and I'd be happy to review and apply it.
I wonder what is the reason for using #set( $symbol_dollar = '$' ) and then ${symbol_dollar}{properties.text} in the sightly scripts instead of just escaping the $ like this $?
According to http://stackoverflow.com/questions/1878742/how-do-you-suppress-property-replacement-when-creating-a-project-from-an-archety escaping the $ should be fine.
More of a question not an issue!
Cheers,
The text was updated successfully, but these errors were encountered: