emacs - 我如何为 Alembic 提供的依赖项命名?
问题描述
如果我在 Emacs Cider 中评估以下内容:
(use 'alembic.still)
(alembic.still/distill '[enlive "1.1.5"])
(require '[net.cgrand.enlive-html :as html])
(html)
...评估 (html) 以查看它是否是可识别的符号会产生“无法解析符号”错误。我正在通过连接到 REPL 的苹果酒对其进行评估。
如何使用 Alembic 提供的依赖项作为别名?
解决方案
您的代码不起作用,因为html
这里是名称空间的别名,而不是符号。但是,来自 enlive 的功能应该可以工作:
(use 'alembic.still)
(alembic.still/distill '[enlive "1.1.5"])
(require '[net.cgrand.enlive-html :as html])
(html/html-snippet "<div>Hello world</div>")
推荐阅读
- python - 当我运行我的代码时,输出对齐不准确,
- javascript - 鼠标移动事件不同的坐标
- magento2 - 如何在magento2中添加带有搜索栏的类别
- php - 变量作为路径参数 (LARAVEL)
- python - 如何绘制分组条形图
- python - TypeError:无法使用 pyautogui.click 多次解压不可迭代的 NoneType 对象
- javascript - 将可拖动元素设置为绝对位置
- angular - Unit Testing with Router.events Angular 9
- java - could not deserialize hibernate
- firebase - How can I use the .where() query in firestore to navigate between different screens? Flutter, Dart, Firebase