Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8799397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:18:47+00:00 2026-06-14T00:18:47+00:00

When lein sets up a project, a core.clj file is created along with other

  • 0

When lein sets up a project, a core.clj file is created along with other directories and files. I want to know if I can split core.clj’s content off to another source file under

../myproj/src/myproj/

and if so, how to access that data from core.clj.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:18:48+00:00Added an answer on June 14, 2026 at 12:18 am

    IIRC (I don’t have a project handy to check), everything in your src/myproj/ directory is in the 'myproj namespace. So your core.clj file will be in the namespace 'myproj.core. Other files will be in their own namespaces within the 'myproj namespace (e.g. 'myproj.other-file for other_file.clj), and can be pulled into core.clj by doing:

    (use 'myproj.other-file)
    

    or, in an ns declaration:

    (ns myproj.core
      (:use [myproj.other-file]))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For a Lein project called myproject, I've created a file core.clj in the myproject/test/
lein new caching I then go in and edit my project.clj file like so.
I ran lein uberjar on my project and it created the corresponding jar files.
I know it's possible to create a war file using lein ring war ,
According to https://github.com/technomancy/leiningen/blob/master/sample.project.clj I can attach a :init inside of a :repl-options. However, when
I just added clojure.core.cache 0.6.1 to my project, did a lein deps, followed the
This is my project.clj file so far: (defproject raj 0.0.1-SNAPSHOT :description FIXME: write description
this is my project.clj file: (defproject org.github.pistacchio.deviantchecker 0.9.0 :description A one page application for
I am using lein 1.6.2 on Ubuntu 1.04, and have created a bare project.
I am starting lein new project in clojure and want to use the goose

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.