Sha*_*awn 5 client-library aem
向客户端库js.txt或css.txt文件添加注释的语法是什么?
看起来以 开头的行可以#作为注释,并且以 开头的行可以//作为注释。但是/* */在构建库时块会导致异常。由于#base=[root]具有特殊含义,这让我想知道这是否确实#是添加评论的合适方式,或者它是否意味着其他用途。这让我想知道发表评论是否真的有效,或者 AEM 是否只是将其视为不存在的文件的相对路径。//
有人知道客户端库的 js.txt 或 css.txt 文件中注释的适当语法的明确答案吗?
#在clientlibsjs.txt和css.txt. 例如,Adobe 使用此作为其版权免责声明:
###############################################################################
# Copyright 2016 Adobe Systems Incorporated
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###############################################################################
#base=./js
modals.js
Run Code Online (Sandbox Code Playgroud)
请参阅 GitHub 上的官方We Retail演示内容:www.github.com 上的 We Retail Clientlib 示例
| 归档时间: |
|
| 查看次数: |
1104 次 |
| 最近记录: |